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