A node that represents a list item. It is similar to the root node.
Create a new RootNode.
The children of the node.
Inherited fromRootNode.constructor
The children of the node.
Inherited fromRootNode.children
The name of the node.
Adds a child to the node. If the node is aTextNode, attempts to flatten the node with a previous TextNode.
The child to add.
Inherited fromRootNode.addChild
Clones the code, creating a new deep-copied node.
Converts the node into a tree-like overview of all children.
The number of spaces to indent the output. Defaults to2.
The tree-like overview of all children.
Inherited fromRootNode.nodeTree
ProtectednodeGets the children of the node tree.
The number of spaces to indent the output.
The children of the node tree.
Inherited fromRootNode.nodeTreeChildren
ProtectednodeGets the heading of the node tree.
The heading of the node tree.
OverridesRootNode.nodeTreeHeading
Gets the textual representation of the node as BBCode.An alias forBaseNode.toString.
Inherited fromRootNode.toBBCode
The textual representation of the BBCode AST. It should return a string equivalent to the input toParser.parse.
Generated usingTypeDoc