Skip to content

Entities inside autolinks not recognized #263

Description

@xiaq

https://spec.commonmark.org/0.30/#entity-and-numeric-character-references implies that only code spans and code blocks don't support entities.

However, the dingus doesn't support entities in autolinks either; the following

<http://&gt;>

is converted to

<p><a href="http://&amp;gt;">http://&amp;gt;</a></p>

(Dingus permalink: https://spec.commonmark.org/dingus/?text=%26gt%3B)

The & inside the autolink is recognized as a literal ampersand rather than the starter of an entity.

I'm inclined to think this is a bug of the dingus implementation but the dingus page itself doesn't say which implementation is behind it, so I'm filing it here. Please move it to the proper tracker if that is indeed the case.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions