Skip to content

Bug: unexpected behavior when using Auto-Links and Auto-Identifiers extensions #668

Open

Description

@keylime-unicorn

Combining the Auto-Link and the Auto-Identifier extensions results in an unexpected parse of the original markdown. Using only the Auto-Links extension generates the expected parse, so the issue only occurs when the two extensions are used together.

The following markdown was used to test this issue:
image

When only using the Auto-Links extension, the HTML generated from the markdown above looks like this:
image

When using both the Auto-Link and the Auto-Identifier extensions, the HTML generated from the markdown above looks like this:
image

It seems that the issue only occurs when the text in the nested square brackets exactly matches an existing heading in the markdown document.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions