metadata after including .qmd files in other qmd files #2959
-
|
Hi, when I include a file |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Yes, this is expected behavior. As described in the documentation, The recommended workaround is to not |
Beta Was this translation helpful? Give feedback.
Yes, this is expected behavior. As described in the documentation,
includeworks literally: it behaves as if the entire contents of the file were pasted at the site of theincludeshortcode. 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
includea.qmdfile with metadata, but rather toincludea.mdfile without metadata.