wdpr
    Preparing search index...

    Module elements/container

    Renderer for "container" AST elements -- the most general wrapper node in the Wikidot AST.

    A container can represent many different HTML constructs depending on its type discriminant:

    • Headers (h1..h6) with optional TOC anchor IDs
    • Text alignment wrappers (left, center, right, justify)
    • Inline formatting (bold, italics, underline, strikethrough, superscript, subscript, monospace, mark, insertion, deletion)
    • Block containers (paragraph, div, blockquote, span)
    • Visibility modifiers (hidden, invisible)
    • Ruby annotations (ruby, ruby-text)
    • Definition lists (definition-list, definition-list-item, etc.)
    • Table sub-elements (table-row, table-cell)
    • Size containers with inline font-size styling

    All attributes are sanitized before rendering to prevent XSS.

    Functions

    renderContainer