Replies: 1 comment
-
Ok, I found the answer to my last question here: https://mystmd.org/guide/creating-pdf-documents#including-content-with-specific-exports I took a cursory look at the renderers (myst-to-xxx) and don't seem to be extensible, so perhaps the approach should be inserting raw nodes in the AST, either from a directive or from a transformer? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been reading the Plugins section of the docs but found no clear example of how to write a directive that can produce different outputs according to the current document format, for example a directive that outputs a colored box both in html.and typst.
Does the directive directly produce final raw output for each format? Or should it produce a new node instead and perhaps let transformers do the rest? Or maybe the final renderer is extensible someway?
Related to this, is it possible to generate raw output for different formats from the document itself?
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions