# MarkdownParser

**Kind:** Class

**Source:** [`atloria-monorepo/libs/parser-core/src/parsers/config-docs/markdown.parser.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/parsers/config-docs/markdown.parser.ts#L64)

Markdown Parser implementation

**Implements:** `IParser`

## Methods

| Method | Signature | Returns |
|---|---|---|
| `initialize` | `initialize(_config: ParserConfig)` | `Promise<void>` |
| `canParse` | `canParse(filePath: string)` | `boolean` |
| `parseFile` | `parseFile(filePath: string, content: string)` | `Promise<ParseResult>` |
| `parseFiles` | `parseFiles(files: ParseFileInput[])` | `Promise<ParseResult[]>` |
| `destroy` | `destroy()` | `Promise<void>` |

## Properties

| Property | Type |
|---|---|
| `name` | `any` |
| `version` | `any` |
| `supportedPatterns` | `any` |

## Where it refuses work

- `MarkdownParser` stops the work with an early return when `typeMap[baseName]`.
- `MarkdownParser` stops the work with an early return when `/guide/i.test(fileName)`.
- `MarkdownParser` stops the work with an early return when `/tutorial/i.test(fileName)`.
- `MarkdownParser` stops the work with an early return when `/api/i.test(fileName)`.
- `MarkdownParser` stops the work with an early return when `/docs?/i.test(filePath)`.
- `MarkdownParser` stops the work with an early return when `/component/i.test(fileName)`.

## When something fails

- `MarkdownParser` handles failure in 2 places: it logs it and continues in 1, and turns it into a return value in 1.
