Fix lexer and tokenizer to retain line breaks properly#2341
Merged
UziTech merged 6 commits intomarkedjs:masterfrom Jan 6, 2022
Merged
Fix lexer and tokenizer to retain line breaks properly#2341UziTech merged 6 commits intomarkedjs:masterfrom
UziTech merged 6 commits intomarkedjs:masterfrom
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/markedjs/markedjs/8heK88jvf6Z7JZpS8ctiZnYCcij6 |
UziTech
reviewed
Jan 4, 2022
UziTech
approved these changes
Jan 4, 2022
Member
UziTech
left a comment
There was a problem hiding this comment.
Thanks for working on this! 💯
styfle
approved these changes
Jan 6, 2022
github-actions bot
pushed a commit
that referenced
this pull request
Jan 6, 2022
## [4.0.9](v4.0.8...v4.0.9) (2022-01-06) ### Bug Fixes * retain line breaks in tokens properly ([#2341](#2341)) ([a9696e2](a9696e2))
|
🎉 This PR is included in version 4.0.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Logiclayer1111
pushed a commit
to Logiclayer1111/marked
that referenced
this pull request
Apr 20, 2026
## [4.0.9](markedjs/marked@v4.0.8...v4.0.9) (2022-01-06) ### Bug Fixes * retain line breaks in tokens properly ([#2341](markedjs/marked#2341)) ([8d99966](markedjs/marked@8d99966))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Marked version:
4.0.8
Markdown flavor: n/a
Description
This PR stops ignoring single
\ncharacters and makes sure they're properly represented in the token list for each token type in the lexer.Contributor
Committer
In most cases, this should be a different person than the contributor.