Skip to content

provide an option to maintain angle brackets around URIs #271

@tedharrison-rpc

Description

@tedharrison-rpc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions