Access document file path within Lua filter #6916
-
DescriptionI have a document, In the following example, I'd like to have access to
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@andrewpbray For pre- and post-render scripts Quarto makes ceertain environment variables available, but for a filter, maybe |
Beta Was this translation helpful? Give feedback.
-
A few items for this purpose have been added in Quarto Lua api in version 1.2 quarto-cli/news/changelog-1.2.md Lines 33 to 38 in b60509d quarto.doc.input_file mentioned above ( #6916 (reply in thread)) is one of them
We still need to document all of them - so sorry to make it hard to find For now, reading the source is the best doc quarto-cli/src/resources/pandoc/datadir/init.lua Lines 1916 to 2084 in b60509d |
Beta Was this translation helpful? Give feedback.
A few items for this purpose have been added in Quarto Lua api in version 1.2
quarto-cli/news/changelog-1.2.md
Lines 33 to 38 in b60509d