wdpr
    Preparing search index...

    Module element

    AST element types for Wikidot markup.

    Wikidot markup (+ heading, **bold**, [[module ListPages]], etc.) is parsed into a structured representation defined here. Each Element is a tagged union of { element: tag, data: payload }, where the data shape for each tag is defined in ElementDataMap.

    import { parse } from "@wdprlib/parser";
    const tree = parse("**Hello** world");
    // tree.elements[0] → { element: "container", data: { type: "paragraph", ... } }

    Block Elements

    CodeBlockData
    CollapsibleData
    TabData

    Container Types

    AlignType
    ContainerData
    HeaderType
    Heading
    ContainerType
    HeadingLevel
    StringContainerType
    isAlignType
    isHeaderType
    isStringContainerType

    Core

    SyntaxTree
    TocEntry
    Element
    ElementData
    ElementDataMap
    ElementName
    ElementOf

    Element Data

    AnchorData
    BibliographyBlockData
    BibliographyCiteData
    ColorData
    DateData
    EmbedBlockData
    ExprData
    FootnoteBlockData
    HtmlData
    IfCondData
    IfExprData
    IframeData
    IfTagsData
    ImageData
    IncludeData
    LinkData
    MathData
    MathInlineData
    TableOfContentsData
    UserData

    Embed Types

    Embed

    Factories

    bold
    container
    heading
    horizontalRule
    italics
    lineBreak
    list
    listItemElements
    listItemSubList
    paragraph
    text

    Image Types

    ImageSource

    Link Types

    PageRef
    AnchorTarget
    LinkLabel
    LinkLocation
    LinkType

    List Types

    DefinitionListItem
    ListData
    ListItem
    ListType

    Module Types

    Module

    Primitives

    FloatAlignment
    Alignment
    AttributeMap
    VariableMap

    Table Types

    TableCell
    TableData
    TableRow

    Utilities

    isContainerTypeParagraphSafe
    isParagraphSafe

    Value Types

    DateItem
    ClearFloat