dart-lang / markdown

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

broken link parsing with GitHubWeb extension #558

Open isoos opened 1 year ago

isoos commented 1 year 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 1 year ago

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