mmarkdown / mmark

Mmark: a powerful markdown processor in Go geared towards the IETF
https://mmark.miek.nl
Other
480 stars 45 forks source link

CRLF line endings in Markdown files creates bogus output #117

Closed robUx4 closed 4 years ago

robUx4 commented 4 years ago

When this file is stored with Linefeed (LF) line ending, it produces a (mostly) correct output:

{mainmatter}

Test

{backmatter}

When stored with CRLF (the Windows way) it produces bogus output:

<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->

</front>

<middle>
<t>

Test

</t>kmatter}

</middle>

The </front> with no beginning exists in both version.

miekg commented 4 years ago

see https://github.com/gomarkdown/markdown/issues/154 and https://github.com/gomarkdown/markdown/issues/137