Skip to content
Discussion options

You must be logged in to vote

Your filter is perfectly fine, as it correspond to the orders filter are run (first Header will be processed, before any Meta)

If you try with pandoc it will work (removing quarto.log.output specific API)

quarto pandoc index.qmd -t gfm+yaml_metadata_block -L headings.lua -s

However, with Quarto, we don't support this use case for now. For some reason, we are taking over +yaml_metadata_block behavior to recreate the feature, but without taking into account any modification by user in Lua filter.

To be clear, very simply, we do get the YAML in the input, and put it back on the output when asked. So currently doing what you want is not possible. We would need to reimplement the logic differ…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@qiushiyan
Comment options

@mcanouil
Comment options

mcanouil Sep 1, 2024
Collaborator

@qiushiyan
Comment options

Comment options

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

cderv Sep 2, 2024
Maintainer

@qiushiyan
Comment options

Answer selected by qiushiyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
lua Issues related to the lua codebase, filter chain, etc
3 participants