wdpr
    Preparing search index...

    Module @wdprlib/ast

    @wdprlib/ast

    AST type definitions for Wikidot markup.

    bun add @wdprlib/ast
    
    import type { SyntaxTree, Element } from "@wdprlib/ast";
    import { text, paragraph, bold } from "@wdprlib/ast";

    // Create AST nodes
    const tree: SyntaxTree = {
    elements: [paragraph([bold([text("Hello")]), text(" world")])],
    };

    Types: SyntaxTree, Element, ElementName, ContainerType, AttributeMap, LinkType, ListType, Module, etc.

    Helpers: text, paragraph, bold, italics, heading, link, list, lineBreak, horizontalRule

    AGPL-3.0 - See LICENSE

    Modules

    element
    index
    position
    settings