Using multiple include statements with individual front matter - not sure if this is a bug #2223
-
I am trying to use multiple The "outer" document
Example of each section document
Expected resultOne page that displays each section one after the other. Observed resultI get one page, sections 1 through 3, however:
It appears that the "outer" document reads the front matter for the first of the included documents and then ignores the front matter from the rest of the included documents. Is there anything I'm missing? Or a workaround I can't see? Or a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
why included documents have titles? What do you expect to happen when the main document ends with 4 titles? To avoid this weird use case in the future, maybe the include shortcut should strip out the metadata 🤔. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
why included documents have titles? What do you expect to happen when the main document ends with 4 titles?
Sections/chapters/etc. are defined with
#
or any markdown syntax giving headers.To avoid this weird use case in the future, maybe the include shortcut should strip out the metadata 🤔.