Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix atx heading and make regex safe #1853

Merged
merged 1 commit into from Dec 10, 2020

Conversation

UziTech
Copy link
Member

@UziTech UziTech commented Nov 27, 2020

Marked version: v1.2.5

Description

Make heading regex safe from redos and pass all atx heading spec tests.

fixes CommonMark spec test 49

possible breaking change: When using the block.heading rule the text provided in capture group 2 will not be trimmed of whitespace.

Since this is only a breaking change to the capture groups this doesn't require a major release but the previous statement should be copied to the release notes.

Contributor

  • Test(s) exist to ensure functionality and minimize regression

Committer

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

@vercel
Copy link

vercel bot commented Nov 27, 2020

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/ou05g5uok
✅ Preview: https://markedjs-git-heading-safe.markedjs.vercel.app

@UziTech UziTech merged commit 70ee29c into markedjs:master Dec 10, 2020
@UziTech UziTech deleted the heading-safe branch December 10, 2020 16:29
github-actions bot pushed a commit that referenced this pull request Dec 10, 2020
## [1.2.6](v1.2.5...v1.2.6) (2020-12-10)

### Bug Fixes

* fix atx heading and make regex safe ([#1853](#1853)) ([70ee29c](70ee29c))
* fix link with angle brackets around href ([#1851](#1851)) ([656c3e4](656c3e4))
@github-actions
Copy link

🎉 This PR is included in version 1.2.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

None yet

3 participants