MultiMarkdown-5 icon indicating copy to clipboard operation
MultiMarkdown-5 copied to clipboard

Bug: File Transclusion will strip away the first line if there's some spaces

Open ickc opened this issue 8 years ago • 2 comments

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.

ickc avatar Apr 05 '16 00:04 ickc

So don't put spaces in there. :)

fletcher avatar Apr 12 '16 00:04 fletcher

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

jasedit avatar Sep 23 '16 19:09 jasedit