Skip to content

Colon after URL is included into URL, when using markdown-it with linkify: true #106

@andrey-skl

Description

@andrey-skl
  1. Have the markdown: test https://example.org/abc: test
  2. Parse it with markdown-it, where linkify option is enabled. See sandbox:
    https://markdown-it.github.io/#md3=%7B%22source%22%3A%22test%20https%3A%2F%2Fexample.org%2Fabc%3A%20test%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Afalse%2C%22_view%22%3A%22html%22%7D%7D

Expected result: Colon is not included into parsed URL, as github markdown parser does
Example from github parser:
github

Actual result: colon is included into URL
Screenshot 2022-09-26 at 10 20 06

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