Package atessera.markdown.renderers


package atessera.markdown.renderers
Provides custom node renderers for the extended Markdown AST nodes.

This package contains NodeRenderer implementations that convert Alpha Tessera's custom AST nodes into LaTeX or HTML output. These renderers are plugged into the rendering pipelines of LatexTarget and HtmlTarget.

Renderer classes

TexNodeRenderer
Renders custom AST nodes into LaTeX. Delegates to the Renderers interface for each node type. Supports headings (via renderHeadingOpening/renderHeadingClosing), math definitions and blocks, labels, references, bibliography items, and multi-blocks. When silentBibItems is true, bibliography items are silently collected rather than rendered inline.
HtmlNodeRenderer
Renders custom AST nodes into HTML. Delegates to the Renderers interface for each node type. Handles headings (with customizable prefix via onHeading), text (with customizable escaping via escape), math, labels, references, citations, advanced images, and multi-blocks.

Both renderers walk the AST by recursively calling context.render() on child nodes, allowing standard commonmark-java nodes to be handled by the core renderer while custom nodes are intercepted and processed by these renderers.

See Also: