Here is a MWE showing the bug: temp.zip
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.