mmarkdown / mmark

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

Compilation breaks on: # Foo\n\n ### Bar \n\n #67

Closed SamuelMarks closed 5 years ago

SamuelMarks commented 5 years ago

Replication steps (mmark 2.0.40, xml2rfc 2.22.0):

$ mmark index.md > index.xml
$ xml2rfc index.xml -o index.html
Error: Unable to parse the XML document: index.xml
 <string>: Line 24: Opening and ending tag mismatch: middle line 17 and
section
 <string>: Line 24: Opening and ending tag mismatch: middle line 17 and
section
 <string>: Line 28: Opening and ending tag mismatch: rfc line 3 and section
 <string>: Line 30: Extra content at the end of the document

More info: https://mailarchive.ietf.org/arch/msg/xml2rfc/OPep-8cpM-NZFqQZzX_whWpU9iw

miekg commented 5 years ago

Thanks. I replied on list. (there index.md) is not posted here but your go from # header to #### header, you can't do this in the XML, so this is WAI from my standpoint.

SamuelMarks commented 5 years ago

The index.md is in that link provided. Should there not be an error before the invalid XML is produced?