Open mcanouil opened 1 year ago
I think the fundamental problem here is that a user filter is emitting a Figure
, and our figure normalization pass happens before user filters.
Maybe what we should do is to expose the figure normalization pass as a quarto API, so that filters which emit Figure
nodes can make sure that the output they generate is compatible with Quarto.
This is to track possible enhancement/fix when inline HTML such as SVG is included in a Figure Pandoc AST node (such as the one emitted by
diagram.lua
below).Note that the issue was raised in the discussion below when using a version of https://github.com/pandoc-ext/diagram under active development. A workaround has been found and is documented in the discussion.
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/5266