Crate pandoc_filter_diagram[][src]

Expand description

Render diagram markup in a Pandoc AST into SVG

Process a Pandoc abstract syntax tree and convert fenced code blocks with diagram markup into embedded SVG images. Supported diagram markup languages:

The Pandoc AST has represents input as Block and other types of nodes. This crate turns Block::CodeBlock nodes that carry a class attribute that specifies one of the supported diagram markup languages into blocks with embedded SVG graphics.

Note that this library does not do any parsing. The pandoc_ast::filter function does that.

Structs

Represent the diagram filter.

Enums

Possible errors for diagram filtering.