How do I include images and use relative paths in a Typst Quarto extension? #12638
-
| DescriptionHi, I have been playing around with developing a Quarto extension that provides a Typst template to format PDF reports (https://github.com/oncology-outcomes/report) Within the  When I try to render the  The directory structure for the extension changes from  | 
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 25 replies
-
| You can't. 
 | 
Beta Was this translation helpful? Give feedback.
-
| Thanks for the quick response, @mcanouil, 
 | 
Beta Was this translation helpful? Give feedback.
-
| To my understanding, what we have done is the following 
 This is what we tried to explain at https://quarto.org/docs/extensions/formats.html#format-resources Using a path relative to the  Hope it helps understand our current logic. | 
Beta Was this translation helpful? Give feedback.
What happens is:
In pandoc, YAML metadata are considered Mardown to be parsed. And Pandoc Typst writer will escape the
_to\_By using raw inline, this would avoid in this markdown to typst conversion. But using raw inline in YAML field has some consequence.
Now that I remember how pandoc's work in detail, to avoid the Markdown reader applying to metadata, when a var…