HTML renderer for the Wikidot AST.
Takes a SyntaxTree produced by @wdprlib/parser and serialises it to an HTML string. Page context, user resolution, and security settings (embed allowlists, iframe sandboxing) are configurable via RenderOptions.
SyntaxTree
@wdprlib/parser
import { parse } from "@wdprlib/parser";import { renderToHtml } from "@wdprlib/render";const html = renderToHtml(parse("**hello**"));// => "<p><strong>hello</strong></p>" Copy
import { parse } from "@wdprlib/parser";import { renderToHtml } from "@wdprlib/render";const html = renderToHtml(parse("**hello**"));// => "<p><strong>hello</strong></p>"
HTML renderer for the Wikidot AST.
Takes a
SyntaxTreeproduced by@wdprlib/parserand serialises it to an HTML string. Page context, user resolution, and security settings (embed allowlists, iframe sandboxing) are configurable via RenderOptions.