-
Notifications
You must be signed in to change notification settings - Fork 67
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃攢 MERGE: Synchronize with markdown-it v12.0.4 #140
Merged
Merged
Conversation
This file contains 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
Partially applies markdown-it/markdown-it@9fe835b, but leaves in mappings for inline tokens.
Codecov Report
@@ Coverage Diff @@
## master #140 +/- ##
==========================================
+ Coverage 96.27% 96.51% +0.23%
==========================================
Files 72 72
Lines 3141 3185 +44
==========================================
+ Hits 3024 3074 +50
+ Misses 117 111 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
To comply with markdown-it/markdown-it@f156ed1 Although this test is currently skipped and requires fixing
The highligh callback should not have the signature: `highlight(code, lang, attrs)`. Implements: markdown-it/markdown-it@866fba3
Alter code such that parsing respects: https://github.github.com/gfm/#tables-extension- - table now doesn't deal with backticks at all - `|` is considered escaped if and only if there is a `\` character immediately before it - number of elements in the first row (thead) now must match second row (aligns) exactly - no `tbody` if it would be empty Implements: markdown-it/markdown-it@3021a52
- Fix tables inside lists indented with tabs (implements: markdown-it/markdown-it@75fe6e0) - Table with no columns is no longer a table (implements: markdown-it/markdown-it@b56eeb0)
Same same fix as in commonmark/commonmark.js#196 Implements: markdown-it/markdown-it@8ad16ac
- Disallow escaped spaces inside link destination: `[](url\ xxx)` no longer valid (implements: markdown-it/markdown-it@2290e10) - Stop link title parsing when second `(` is found: `[](url (xxx())` no longer valid (implements: markdown-it/markdown-it@b1651b1) - Stop link parsing when second `<` is found: `[](<foo<bar>)` (implements: markdown-it/markdown-it@f688abc)
Adds a cache `StateInline->backticks` which remembers positions for every possible backtick closer. The algorithm is similar to the one described here: mity/md4c@685b714 Implements: markdown-it/markdown-it@1e8aff0 and markdown-it/markdown-it@fece91e
Implements: markdown-it/markdown-it@83b0575, and strikethrough fix: markdown-it/markdown-it@c9dd942
Don't try to parse link title if link wasn't found (implements: markdown-it/markdown-it@537ab89) Allow no more than 32 levels of nesting in `[]( (((((....))))) )` (implements: markdown-it/markdown-it@1910a3c)
Fix quadratic complexity in autolinks implements: markdown-it/markdown-it@e729b90
This was referenced Mar 10, 2021
chrisjsewell
added a commit
that referenced
this pull request
Mar 10, 2021
Fix a few mistaken regressions from #140
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.
This is a reworking of #110, but with commits split to mirror those in markdown-it