ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
65 stars 38 forks source link

reftext breaks up on <em in HTML #1034

Closed cabo closed 11 months ago

cabo commented 11 months ago

Describe the issue

The attached example produces in TXT:

1.  Introduction

   See Section 2 (The _Style_ of Data Structure Specification) of CDDL
   [RFC8610].

   See The _Style_ of Data Structure Specification (Section 1)

as it should. HTML, however, yields:

1. Introduction
See Section 2 (The ) of CDDL [RFC8610].

See The Style of Data Structure Specification (Section 1)

(emphasis lost in copy/paste.) The second para shows that <em in reftext works in principle. The first para works in TXT, but loses everything but the first text node for HTML.

(3.18.0)

reftext-issue.md reftext-issue.xml.txt reftext-issue.v2v3.xml.txt

Code of Conduct