cabo / kramdown-rfc

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

Superfluous angle brackets #85

Closed larseggert closed 3 years ago

larseggert commented 3 years ago

Even when a URL is already enclosed in angle brackets, kramdown-rfc2629 adds another pair.

Source

target: <https://pfld.net/2006/paper/s2_03.pdf>

becomes

target="&lt;https://pfld.net/2006/paper/s2_03.pdf&gt;"
cabo commented 3 years ago

Doctor, it hurts when...

I'd say "works as designed".

This is for bibliography entries? I can add some code to unwrap URIs, if needed.

larseggert commented 3 years ago

Markdownlint complains for bare URLs, which is why I added the brackets...

cabo commented 3 years ago

But this is in the YAML, no? Markdownlint has no business complaining about the YAML, I'd say.

cabo commented 3 years ago

Hack:

(1) use this as the last line of the YAML:

stand_alone: ---

(2) use mdl -i

There is still one spurious "MD034 Bare URL used" for the end-of-YAML marked introduced in (1); no idea what is wrong about that.