refactor: Move directive processing before parsing

Directives and fronmatter will be preprocessed
and removed from the text before parsing.
This commit is contained in:
Sidharth Vinod
2023-08-25 12:54:44 +05:30
parent 2dd1415849
commit 276fd7ad84
17 changed files with 384 additions and 329 deletions

View File

@@ -16,4 +16,4 @@
#### Defined in
[mermaidAPI.ts:78](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaidAPI.ts#L78)
[mermaidAPI.ts:76](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaidAPI.ts#L76)