Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Conversation

chenzhiguang
Copy link
Contributor

To improve the readability and test coverage.

Fix: dart-lang/tools#1315

static final Config gfmConfig = Config._(
'gfm',
'https://github.github.com/gfm/',
ExtensionSet.gitHubFlavored,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ExtensionSet.gitHubFlavored does not work out here. Because AutolinkExtensionSyntax and AutolinkSyntax conflict to each other.

For example:
https://github.github.com/gfm/#example-620

http://example.com

Without AutolinkExtensionSyntax, the result is:

<p>http://example.com</p>

With AutolinkExtensionSyntax, the result is:

<p><a href="http://example.com">http://example.com</a></p>

@chenzhiguang chenzhiguang force-pushed the Refactor-AutolinkExtensionSyntax branch from 1abc5b8 to 01e126b Compare October 25, 2022 17:49
@chenzhiguang
Copy link
Contributor Author

@srawlins hi, I have created 3 more PRs. I am not sure if I need to ping you each time when I have created a new PR, so it will show up somewhere on your dashboard. 🙂

@kevmoo kevmoo requested a review from srawlins October 25, 2022 21:47
@chenzhiguang chenzhiguang force-pushed the Refactor-AutolinkExtensionSyntax branch from 1b7fa9a to 7e6362c Compare October 26, 2022 03:54
@coveralls
Copy link

coveralls commented Oct 26, 2022

Pull Request Test Coverage Report for Build 3326057450

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 32 of 33 (96.97%) changed or added relevant lines in 1 file are covered.
  • 8 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.4%) to 94.55%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/src/inline_syntaxes/autolink_extension_syntax.dart 32 33 96.97%
Files with Coverage Reduction New Missed Lines %
lib/src/extension_set.dart 8 64.0%
Totals Coverage Status
Change from base Build 3323865806: -0.4%
Covered Lines: 1197
Relevant Lines: 1266

💛 - Coveralls

@chenzhiguang chenzhiguang force-pushed the Refactor-AutolinkExtensionSyntax branch from 7e6362c to eea7e9f Compare October 29, 2022 16:23
Copy link
Collaborator

@srawlins srawlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! One question

Copy link
Collaborator

@srawlins srawlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@srawlins srawlins merged commit 49eefd2 into dart-archive:master Oct 31, 2022
@chenzhiguang chenzhiguang deleted the Refactor-AutolinkExtensionSyntax branch October 31, 2022 16:50
mosuem pushed a commit to dart-lang/tools that referenced this pull request Dec 9, 2024
* Refactor AutolinkExtensionSyntax

Fix https://github.com/dart-lang/markdown/issues/470

* Improve readability

* optimise a bit

* Fix some requests from reveiw

* Update gfm_stats.txt

* An optimisation.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Link creation bugs in GitHubWeb-flavored extension
4 participants