In the original folder, things are working as expected.
In the bug folder, in file ch1.md, ch2.md, I put 2 spaces in the line between the metadata front matter and the first header. In the transcluded file master.html, you will see that the header of ch1.md, ch2.md has gone.
While I'm no fan of trailing whitespace, I believe I've come up with a minimal fix to avoid whitespace fooling the metadata detection. It fixes the MWE case in my testing
Here is a MWE showing the bug: temp.zip
In the
original
folder, things are working as expected.In the
bug
folder, in filech1.md
,ch2.md
, I put 2 spaces in the line between the metadata front matter and the first header. In the transcluded filemaster.html
, you will see that the header ofch1.md
,ch2.md
has gone.