Skip to content

entries/lezer

The Lezer entry point (@mnaoumov/obsidian-markdown-parser/lezer): the Obsidian syntax as @lezer/markdown extensions.

  • parse gives the @lezer/markdown tree with the Obsidian syntax, and obsidianMarkdown is that syntax as @lezer/markdown extensions. - 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.
Function Description
parse Parses a markdown document into a Lezer syntax tree with the Obsidian syntax.