wdpr
    Preparing search index...

    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.

    import { parse } from "@wdprlib/parser";
    import { renderToHtml } from "@wdprlib/render";

    const html = renderToHtml(parse("**hello**"));
    // => "<p><strong>hello</strong></p>"

    References

    DEFAULT_EMBED_ALLOWLIST → DEFAULT_EMBED_ALLOWLIST
    PageContext → PageContext
    RenderOptions → RenderOptions
    RenderResolvers → RenderResolvers
    renderToHtml → renderToHtml
    ResolvedUser → ResolvedUser

    Settings

    WikitextSettings
    WikitextMode
    DEFAULT_SETTINGS
    createSettings