dart-lang / markdown

A Dart markdown library
https://pub.dev/packages/markdown
BSD 3-Clause "New" or "Revised" License
441 stars 201 forks source link

broken link parsing with GitHubWeb extension #558

Open isoos opened 9 months ago

isoos commented 9 months ago

Version: 7.1.1 Originally reported on: https://github.com/dart-lang/pub-dev/issues/7096

Source:

[Pub Package: https://pub.dev/packages/simple_architecture](https://pub.dev/packages/simple_architecture)

Using the GitHubWeb extension, it renders to:

<p>[Pub Package: <a href="https://pub.dev/packages/simple_architecture%5D(https://pub.dev/packages/simple_architecture)">https://pub.dev/packages/simple_architecture](https://pub.dev/packages/simple_architecture)</a></p>

Using it without the extension it renders correctly to:

<p><a href="https://pub.dev/packages/simple_architecture">Pub Package: https://pub.dev/packages/simple_architecture</a></p>
lrhn commented 8 months ago

The GitHub flavored markdown extension converts embedded valid URLs to links. It should probably not do that inside another link.