Build-time TikZ renderer for Quartz 5
This plugin renders TikZ code blocks into SVG diagrams during the build process. It must be inserted before any plugins that manipulate code blocks, such as the Quartz Syntax Highlighting plugin.
Built with rehype-tikzjax, which relies on prinsss/node-tikzjax.
This plugin inherits options from node-tikzjax and adds three custom settings:
className: Appends a custom CSS class to the rendered<svg>element for easier styling. (default:"tikz-diagram")removeBlankLines: Removes empty lines from the TikZ code to prevent unexpected LaTeX compilation errors. (default:true)onError: Determines whether to keep the original code block ("skip") or halt the build ("throw") upon a rendering failure. (default:"skip")
Because node-tikzjax does not support concurrent rendering, this plugin renders TikZ diagrams consecutively. It might become a bottleneck during the build step if your project contains a massive amount of diagrams.