Add an include directive for importing content from other files.
[:include:]{file=other.md} will load the referenced file (with a path relative to the original input file), parse it, and insert the AST content into the parent document.
[:include:]{file=other.tex raw=tex} will load the referenced file and include the content verbatim within an output-specific raw component node.
Includes can be used in both block and inline contexts. However, importing block-type content into an inline context will result in an error.
Update visitNodes AST utility to pass a grandparent node as a third argument to the visitor callback.
include
directive for importing content from other files.[:include:]{file=other.md}
will load the referenced file (with a path relative to the original input file), parse it, and insert the AST content into the parent document.[:include:]{file=other.tex raw=tex}
will load the referenced file and include the content verbatim within an output-specificraw
component node.visitNodes
AST utility to pass a grandparent node as a third argument to the visitor callback.