cabo / kramdown-rfc

An XML2RFC (RFC799x) backend for Thomas Leitner's kramdown markdown parser
MIT License
195 stars 83 forks source link

Generating and including multiple similar SVGs leads to ID collisions #193

Closed cabo closed 1 year ago

cabo commented 1 year ago

https://github.com/ietf-tools/xml2rfc/issues/973

Strictly speaking, this cannot be fixed in xml2rfc because the XML emitted by kramdown-rfc is already officially broken.

cabo commented 1 year ago

PoC tool in 1.6.28; see above issue for usage.

cabo commented 1 year ago

To avoid the need for adding processing pipelines, kramdown-rfc 1.6.29 now has a YAML header option:

svg-id-cleanup: true

More details in: https://github.com/cabo/kramdown-rfc/wiki/SVG#svg-id-collisions

cabo commented 1 year ago

Freestanding tool has been tested by RPC; integrated form by author. Closing now.

cabo commented 1 year ago

One related bug in plantuml that we can't really fix in kramdown-rfc:

https://forum.plantuml.net/17903/plantuml-generates-duplicate-ids-on-groups-in-svg