adobe / helix-pipeline

request | markdown | html | response
https://www.project-helix.io
Apache License 2.0
31 stars 19 forks source link

windows-linebreaks are considerer non-emptly lines #436

Open tripodsan opened 5 years ago

tripodsan commented 5 years ago

having a markdown with \r\n linebreaks, messup the parser:

# Hello\r\n
\r\n
---\r\n
\r\n
# foo\r\n
\r\n

gives error:

Error: Found ambigous frontmatter fence: No empty line before the block! Make sure your frontmatter blocks contain no empty lines and your horizontal rules have an empty line before AND after them.
trieloff commented 5 years ago

That's probably best fixed in https://github.com/remarkjs/remark-frontmatter

trieloff commented 5 years ago

I'm mistaken. Since @koraa's refactoring, we don't use remark-frontmatter anymore.