Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ickc opened this issue Apr 5, 2016 · 2 comments

Comments

@ickc
Copy link

ickc commented Apr 5, 2016

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.

@fletcher
Copy link
Owner

So don't put spaces in there. :)

jasedit added a commit to jasedit/MultiMarkdown-5 that referenced this issue Sep 23, 2016
@jasedit
Copy link

jasedit commented Sep 23, 2016

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 added a commit to jasedit/MultiMarkdown-5 that referenced this issue Sep 23, 2016
jasedit added a commit to jasedit/MultiMarkdown-5 that referenced this issue Sep 25, 2016
jasedit added a commit to jasedit/MultiMarkdown-5 that referenced this issue Oct 29, 2016
@ickc ickc closed this as completed Dec 2, 2016
@fletcher fletcher reopened this Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants