mmarkdown / mmark

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

The <seriesInfo> elements in <reference> are not kept #113

Closed robUx4 closed 4 years ago

robUx4 commented 4 years ago

For example this XML code after the {backmatter}

<reference anchor="ISO.9899" target="https://www.iso.org/standard/57853.html">
  <front>
    <title>Information technology -- Programming languages -- C</title>
    <author>
      <organization>International Organization for Standardization</organization>
    </author>
    <date month="" year="2011" />
  </front>
  <seriesInfo name="ISO/IEC" value="9899:2011" />
</reference>

will produce

<reference anchor="ISO.9899" target="https://www.iso.org/standard/57853.html">
  <front>
    <title>Information technology -- Programming languages -- C</title>
    <author>
      <organization>International Organization for Standardization</organization>
    </author>
    <date year="2011"></date>
  </front>
</reference>
miekg commented 4 years ago

[ Quoting notifications@github.com in "[mmarkdown/mmark] The ..." ]

For example this XML code after the {backmatter}

hmm, yeah it's a bug.

Note that's because the original xml3 spec is not leading anymore. Basically whatever xml2rfc implements is the current spec, which makes it impossible to be compliant. And IIRC seriesInfo has been discussed a lot.