-
DescriptionHi team! I'm trying to create a quarto shortcode extension that adds inserts an executable code chunk into the document.
However whenever I return a
Here's a repo with a minimal example: https://github.com/dfalbel/short Is this something that should be possible with shortcodes? What am I doing wrong? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Even without going into your code, that's not going to work at all :( Lua filters happen after knitr has already executed. |
Beta Was this translation helpful? Give feedback.
No, those are also "executable", and are handled before pandoc :(
Lua filters currently handle "evaluated content" (that's not a real term we use, but gives you the right mental model). Knitr, Jupyter, OJS,
dot
,mermaidjs
are all determined before Pandoc. Effectively, things that are denoted like so:Are all handled before Pandoc is called.