Skip to content

Inconsistent escape handling in link/autolink destinationsΒ #445

@mity

Description

@mity

(Original discussion here: https://talk.commonmark.org/t/backslash-escapes-inside-link-destinations/2312)

Consider various spans where link destination can appear:

<http:\*>

[link](http:\*)
[link](<http:\*>)

[refdef]: http:\*
[refdef]: <http:\*>

Currently (0.27), backslash-escapes do not work inside autolinks, but they do work in (destination portion of) links and reference link definitions.

I believe this should be unified for the sake of uniformity, at least in the case of link destinations enclosed between< >. IDK whether it would be better to or not to support the escapes there, but handling them differently is likely the worst possible approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions