-
Notifications
You must be signed in to change notification settings - Fork 97
Description
We might be limited by the way markdown handles creating URLs, but wanted to see if the following was possible:
Currently when adding a URL to the text when using kramdown-rfc - for example:
This is the homepage for the RFC Editor: <https://www.rfc-editor.org/>creates the following in xml:
<t>This is the homepage for the RFC Editor: <eref target="https://www.rfc-editor.org/">https://www.rfc-editor.org/</eref></t>Yields the following:
In html output:
This is the homepage for the RFC Editor: https://www.rfc-editor.org/
In txt output:
This is the homepage for the RFC Editor: https://www.rfc-editor.org/ (https://www.rfc-editor.org/)
Note that Section 3.3 of RFC 7322 strongly recommends using angle brackets around URIs.
So the desired xml would use the brackets="angle" attribute for eref like so:
<t>This is the homepage for the RFC Editor: <eref brackets="angle" target="https://www.rfc-editor.org/"/></t>which yields:
This is the homepage for the RFC Editor: <https://www.rfc-editor.org/>Currently, we note instances of URIs in the markdown to be updated manually in the XML later in the publication process - which adds some unwanted tedium.