renderLezerHtml
Renders a @lezer/markdown tree to HTML as the CommonMark reference implementation renders the document.
Import:
import { renderLezerHtml } from '@mnaoumov/obsidian-markdown-parser';Signature:
function renderLezerHtml(text: string, tree: Tree, options: RenderLezerHtmlOptions): stringParameters:
| Parameter | Type | Description |
|---|---|---|
text |
string | The document the tree was parsed from. |
tree |
Tree | The tree. |
options |
RenderLezerHtmlOptions | The rendering options. |
Returns: string — The HTML.
Links to this page: