Check whether the preview is in presentation mode.
StaticAutoMap preview theme to prism theme.
StaticAutoChrome (puppeteer) file export
clearCaches will clear filesCache, codeChunksData, graphsCache
fileType: 'epub', 'pdf', 'mobi' or 'html'
OptionalrunAllCodeChunks?: booleandest if success, error if failure
Generate HTML content
Generate a minimal HTML template for the graph view webview. Unlike generateHTMLTemplateForPreview, this does not parse any markdown — it just creates a shell that loads graph-view.js.
Generate html template for preview.
Optionalbody?: stringOptionalcontentSecurityPolicy?: stringOptionalhead?: stringOptionalinputString?: stringOptionalisVSCodeWebExtension?: booleanOptionalparsedOutput?: MarkdownEngineOutputReuse an existing parseMD result (rendered with the same preview
options this template would use) instead of parsing inputString
again. Callers that need the parsed output anyway — e.g. the wiki
builder, which also ships it as the updateHtml payload — avoid the
double render this way.
Optionalscripts?: stringOptionalstyles?: stringOptionalwebviewScript?: stringdest if success, error if failure
Render this note as a complete, self-contained HTML document — the exact
document htmlExport writes, without touching the filesystem. Local
images/SVGs can be embedded as data URIs so the document works away from
the authoring machine; dependency assets (KaTeX CSS, mermaid, …) follow
offline: CDN links when false, inlined files when true.
Front-matter html: keys (offline, embed_local_images, embed_svg)
override the arguments, like in htmlExport.
markdown(gfm) export
generate HTML file and open it in browser
legacy method to support backwards compatibility
legacy method to support backwards compatibility
The markdown engine that can be used to parse markdown and export files