codemirror / dev

Development repository for the CodeMirror editor project
https://codemirror.net/
Other
5.94k stars 377 forks source link

Markdown link text part parsing not working correctly #1417

Closed ZaymonFC closed 2 months ago

ZaymonFC commented 3 months ago

Describe the issue

Link text parts prefixed with www or suffixed with .com/ seem to break the parser.

Repro:

  1. Go to https://codemirror.net/5/mode/gfm/index.html
  2. Paste the following:
## URL Issues

Leading `www` breaks formatting.
[www.inc.com](https://www.inc.com)

Trailing `.com/` breaks formatting.
[figma.com/](https://www.figma.com)

Ok.
[figma.com](https://www.figma.com)
[any other text](https://www.example.com)

Image

marijnh commented 3 months ago

This is the issue tracker for version 6, but you're linking to the version 5 gfm demo (which shares zero code with version 6). For which version of the library is this issue intended?