MutableAstAttributes
Writeable attributes that are modified during the parsing process, and carry useful information for the next stages of the pipeline. Storing these attributes while parsing prevents a further visit of the final tree.
Parameters
the root node of the tree. According to the architecture, this is set right after the parsing stage
the defined links, which can be referenced by other nodes
the function calls to be later executed
whether there is at least one code block.
whether there is at least one math block or inline.
See also
Constructors
Properties
Whether there is at least one code block in the AST.
Whether there is at least one math block or inline in the AST.
Whether there is at least one Mermaid diagram in the AST.
Properties associated with nodes in the AST. These properties enrich the AST by storing additional information about the nodes, such as:
The table of contents of all the headings in the document. This is generated by the tree traversal stage of the pipeline.
Properties associated with third-party elements in the AST. These properties are used to track the presence of third-party elements in the AST, in order to conditionally load third-party libraries in the final artifact to avoid unnecessary bloat and improve performance.
Functions
Marks the presence of code blocks in the AST if at least one Code block is present in the document.
Marks the presence of math blocks or inlines in the AST if at least one math element is present in the document.
Marks the presence of Mermaid diagrams in the AST if at least one diagram is present in the document.