Skip to content

fix: fix gfm urls after link#2186

Merged
UziTech merged 2 commits intomarkedjs:masterfrom
UziTech:fix-autolink
Aug 23, 2021
Merged

fix: fix gfm urls after link#2186
UziTech merged 2 commits intomarkedjs:masterfrom
UziTech:fix-autolink

Conversation

@UziTech
Copy link
Copy Markdown
Member

@UziTech UziTech commented Aug 23, 2021

Marked version: 3.0.0

Markdown flavor: GitHub Flavored Markdown

Description

inLink state is not reset after creating a link token so GFM auto-urls are not being tokenized as links.

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

@vercel
Copy link
Copy Markdown

vercel bot commented Aug 23, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/markedjs/markedjs/ARmKXHY5iamifcEGafmK5WR59EL6
✅ Preview: https://markedjs-git-fork-uzitech-fix-autolink-markedjs.vercel.app

Copy link
Copy Markdown
Contributor

@calculuschild calculuschild left a comment

Choose a reason for hiding this comment

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

I am constantly amazed at how we can be passing all the unit tests and yet something else always manages to break. 😓

Looks good to me!

@UziTech UziTech merged commit e03b5c1 into markedjs:master Aug 23, 2021
@UziTech UziTech deleted the fix-autolink branch August 23, 2021 18:47
github-actions bot pushed a commit that referenced this pull request Aug 23, 2021
## [3.0.1](v3.0.0...v3.0.1) (2021-08-23)

### Bug Fixes

* fix gfm urls after link ([#2186](#2186)) ([e03b5c1](e03b5c1))
@UziTech
Copy link
Copy Markdown
Member Author

UziTech commented Aug 23, 2021

I am constantly amazed at how we can be passing all the unit tests and yet something else always manages to break. 😓

No such thing as 100% test coverage for regexes 😅

@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 3.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Logiclayer1111 pushed a commit to Logiclayer1111/marked that referenced this pull request Apr 20, 2026
## [3.0.1](markedjs/marked@v3.0.0...v3.0.1) (2021-08-23)

### Bug Fixes

* fix gfm urls after link ([#2186](markedjs/marked#2186)) ([57a56a7](markedjs/marked@57a56a7))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

All URL links are broken after Markdown link

3 participants