Skip to content
Discussion options

You must be logged in to vote

My current solution is the following little filter add-meta.lua:

--[[
This filter adds metadata to the document.

This allows us to add useful information visible to Pandoc and
Quarto, but not available in a Python / Panflute filter.

See: https://quarto.org/docs/extensions/lua-api.html
]]

return {{
    Meta = function (meta)
        for _, fmt in ipairs({'html', 'latex',
                              'docx', 'markdown'}) do
            if quarto.doc.is_format(fmt) then
                out_format = fmt
                break
            end
        end
        meta['quarto-doc-params'] = {
            output_directory = quarto.project.output_directory,
            input_file = quarto.doc.i…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cscheid
Comment options

Comment options

You must be logged in to vote
2 replies
@cscheid
Comment options

@matthew-brett
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by matthew-brett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants