@wdprlib/parser
    Preparing search index...

    Interface ParserOptions

    Configuration for the Parser and the parse function.

    All fields are optional; sensible defaults are applied when omitted.

    interface ParserOptions {
        pageTags?: string[] | null;
        settings?: WikitextSettings;
        trackPositions?: boolean;
        version?: "wikidot";
    }
    Index

    Properties

    pageTags?: string[] | null

    Page tags consulted when expanding [[iftags]] directives that are embedded inside another block's opener.

    Values:

    • omitted / undefined: no preprocess pass.
    • null: opener-embedded iftags only, evaluated as if the page has no tags.
    • string[]: every iftags block is evaluated against the given tags eagerly.
    settings?: WikitextSettings

    Context-dependent feature flags (page vs. forum-post, etc.). Defaults to DEFAULT_SETTINGS (full page mode).

    trackPositions?: boolean

    Propagate source-position data into every AST node. Defaults to true. Set to false for smaller output when positions are not needed.

    version?: "wikidot"

    Markup dialect. Currently only "wikidot" is supported.