entries/lezer
The Lezer entry point (@mnaoumov/obsidian-markdown-parser/lezer): the Obsidian syntax as @lezer/markdown extensions.
- parse gives the
@lezer/markdowntree with the Obsidian syntax, and obsidianMarkdown is that syntax as@lezer/markdownextensions. - createObsidianParser takes a preset with any of its flags overridden, and renderLezerHtml renders a Lezer tree as CommonMark’s reference implementation does, so the tree is checked against the spec suites.
Functions
Section titled “Functions”| Function | Description |
|---|---|
| parse | Parses a markdown document into a Lezer syntax tree with the Obsidian syntax. |