Alex Kocharin
24abaa51a6
Improve emphasis algorithm
This fixes quadratic complexity in `**<...>**a**<...>**`
pathological case.
3 years ago
Himanshu Mehta
e07a9ddeee
typo fix
3 years ago
Vitaly Puzrin
6e2de08a0b
12.2.0 released
3 years ago
Vitaly Puzrin
08827d6b82
dist rebuild
3 years ago
Eddie Kohler
8bcc82aa74
Parser: Set ordered list_item_open token info to input marker.
For instance, in a list
1. Item 1
20. Item 2
the first list_item_open token will have token.info === '1', and the
second will have token.info === '20'.
This is useful for later rendering plugins that might want to
use the actual markers.
3 years ago
Alex Kocharin
77fb93739d
Add pathological test from cmark
3 years ago
Taneli Hukkinen
e5986bb7cc
Always suffix indented code block with a newline
3 years ago
Vitaly Puzrin
13cdeb95ab
12.1.0 released
3 years ago
Vitaly Puzrin
13d833535e
Dist rebuild
3 years ago
Alex Kocharin
eed156e9cd
Fix emphasis algorithm as per 0.30 spec
https://github.com/commonmark/cmark/issues/383
3 years ago
Alex Kocharin
0b14fa069f
Update CommonMark spec to 0.30
3 years ago
Vitaly Puzrin
064d602c68
Updated highlight.js usage info
- Ref #779
4 years ago
Vitaly Puzrin
df4607f1d4
12.0.6 released
4 years ago
Vitaly Puzrin
e5b0eb385c
dist rebuild
4 years ago
Vitaly Puzrin
28d9ad8f0c
Merge pull request #775 from hukkinj1/fix-image-newline
Fix newline not rendered in image alt attribute
4 years ago
Taneli Hukkinen
272a470ed2
Fix newline not rendered in image alt attribute
4 years ago
Vitaly Puzrin
3740146fc9
12.0.5 released
4 years ago
Vitaly Puzrin
0a84be4d39
dist rebuild
4 years ago
Alex Kocharin
309c03a9e8
Lower priority for ATX headers to resolve conflict with HTML blocks
fix https://github.com/markdown-it/markdown-it/issues/772
4 years ago
Taneli Hukkinen
cd5296f1e7
Fix table/list parsing ambiguity ( #767 )
4 years ago
Vitaly Puzrin
041b7c7581
Merge pull request #766 from hukkinj1/info-comment
Clarify `Token.info` comment
4 years ago
Taneli Hukkinen
32564bad8d
Clarify `Token.info` comment
4 years ago
Vitaly Puzrin
7b8969ce5c
12.0.4 released
4 years ago
Vitaly Puzrin
6f41c701d8
dist rebuild
4 years ago
Vitaly Puzrin
c9949dd585
Avoid fenced token mutation, #745
4 years ago
Vitaly Puzrin
be22253b7c
Update funding info
4 years ago
Alex Kocharin
c9dd942246
Fix crash when processing strikethrough
close https://github.com/markdown-it/markdown-it/issues/742
4 years ago
Vitaly Puzrin
ef59691072
12.0.3 released
4 years ago
Vitaly Puzrin
2710272db9
dist rebuild
4 years ago
Vitaly Puzrin
fc3dc00e2b
Update pathological tests crc
4 years ago
Alex Kocharin
ddbb195546
Remove meta from list of block html tags
ref https://github.com/commonmark/commonmark-spec/issues/527
4 years ago
Alex Kocharin
8ad16ac4d9
Allow EOL in processing instructions
same fix as in https://github.com/commonmark/commonmark.js/issues/196
4 years ago
Alex Kocharin
e729b90a1d
Fix quadratic complexity in autolinks
close https://github.com/markdown-it/markdown-it/issues/737
4 years ago
Alex Kocharin
8cd6fc34c4
Fix quadratic compexity on backticks
close https://github.com/markdown-it/markdown-it/issues/736
4 years ago
Alex Kocharin
2290e109c5
Disallow escaped spaces inside link destination
4 years ago
Alex Kocharin
83b05755db
Fix quadratic time on emphasis
close https://github.com/markdown-it/markdown-it/issues/735
4 years ago
Alex Kocharin
537ab89d7c
Don't try to parse link title if link wasn't found
4 years ago
Vitaly Puzrin
77cccb83a5
Restrict pathological tests execution time
4 years ago
Vitaly Puzrin
1db3f95e71
Track cmark pathological tests updates
4 years ago
Alex Kocharin
73281d8b42
Port pathological tests from cmark
4 years ago
Alex Kocharin
fece91e265
Fix backtick algorithm
now it more closely matches one in `cmark`
4 years ago
Alex Kocharin
b1651b1363
Stop link title parsing when second `(` is found
`[](url (xxx())` is no longer a valid link
4 years ago
Alex Kocharin
1e8aff0084
Fix quadratic time on backticks
This commit adds a cache `StateInline->backticks` which remembers
positions for every possible backtick closer (`, ``, ```, etc.).
Algorithm is similar to one described here:
685b714453
close https://github.com/markdown-it/markdown-it/issues/733
4 years ago
Vitaly Puzrin
1ef5bcc6b8
Bump entities 2.0.x => 2.1.x
4 years ago
Vitaly Puzrin
97a9d4637e
Speed up babelmark app tests
4 years ago
Alex Kocharin
1910a3cdb2
Limit () nesting inside urls
Allow no more than 32 levels of nesting in `[]( (((((....))))) )`
for performance reasons.
close https://github.com/markdown-it/markdown-it/issues/732
4 years ago
Alex Kocharin
f688abccaf
Stop link parsing when second `<` is found
`[](<foo<bar>)` is no longer a valid link
4 years ago
Vitaly Puzrin
cadc58e607
Update CI badge
4 years ago
Vitaly Puzrin
dcb5d16d53
CI: Travis => Github Actions
4 years ago
Vitaly Puzrin
38a1b9fdd3
Skip babelmark tests
4 years ago