Skip to content
Discussion options

You must be logged in to vote

Yes, this is expected behavior. As described in the documentation, include works literally: it behaves as if the entire contents of the file were pasted at the site of the include shortcode. This means that if you include a file with metadata, you get multiple blocks, and pandoc interprets multiple blocks in this way.

The recommended workaround is to not include a .qmd file with metadata, but rather to include a .md file without metadata.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kris-brown
Comment options

@cscheid
Comment options

Answer selected by kris-brown
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