Skip to content
Discussion options

You must be logged in to vote

The issue, I suspect, is that shift-heading-level-by is a global yaml option (include is a pretty blunt tool: it inlines all the code, and the rest of quarto doesn't know that the options you set are only meant for that document). In order for what you're suggesting to work, I think you'd have to do more clever things.

The Lua filter route is to wrap your include call in a div block with a particular class, then have your lua filter find that block, walk its children, and replace headings manually with headings that are one level lower.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by bbartholdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants