dart-lang / markdown

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

Link uri encoding, URL-escaping should be left alone inside the destination #598

Closed mym0404 closed 3 months ago

mym0404 commented 3 months ago

Fix #597

By the Commonmark Spec URL-escaping should be left alone inside the destination, reimplement normalizeLinkDestination util function with splitting by URL Escapings and concatenating them again.

We shouldn't use decodeXXX at initial string in any ways.

This doesn't make problem with fixed issue #589. All tests previous exist also are passed.


Contribution guidelines:
- See our [contributor guide](https://github.com/dart-lang/.github/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Most changes should add an entry to the changelog and may need to [rev the pubspec package version](https://github.com/dart-lang/sdk/wiki/External-Package-Maintenance#making-a-change). - Changes to packages require [corresponding tests](https://github.com/dart-lang/.github/blob/main/CONTRIBUTING.md#Testing). Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.
google-cla[bot] commented 3 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

mym0404 commented 3 months ago

I renewed Google CLA. It should work now

coveralls commented 3 months ago

Pull Request Test Coverage Report for Build 8335977223

Details


Totals Coverage Status
Change from base Build 8223548919: 0.01%
Covered Lines: 1547
Relevant Lines: 1609

💛 - Coveralls