Bohan Wei
|
a367c44154
|
Fix typo in comments of text.mjs (#1015)
|
8 months ago |
Alex Kocharin
|
5e90063954
|
simplify logic in scanDelims
fix https://github.com/markdown-it/markdown-it/issues/1003
|
9 months ago |
Vitaly Puzrin
|
9f5e9c6069
|
lint: remove key spacing
|
12 months ago |
Vitaly Puzrin
|
8b815a6072
|
lint: reduce empty lines
|
12 months ago |
Vitaly Puzrin
|
efc714f702
|
standard: more tweaks & simplify eslint config
|
12 months ago |
Vitaly Puzrin
|
94177fca70
|
standard: spaces in comments
|
12 months ago |
Vitaly Puzrin
|
9e7378775f
|
standard: init vars in separate declaration
|
12 months ago |
Vitaly Puzrin
|
7dfcf69b71
|
standard: no spaces near array brackets
|
12 months ago |
Vitaly Puzrin
|
0eb4cb96a4
|
standard: space before function params
|
12 months ago |
Vitaly Puzrin
|
d0219010ad
|
standard: remove semi
|
12 months ago |
Vitaly Puzrin
|
88b8669c46
|
var => const, let
|
12 months ago |
Vitaly Puzrin
|
e92e776411
|
Rewrite core to es6 modules
|
1 year ago |
Matt Cowley
|
8470eb6706
|
chore: Update entities dependency (#901)
* Update entities package + usage
* Apply custom digital entity logic before entities decode
|
1 year ago |
Alex Kocharin
|
80a3adc094
|
Fix crash in linkify inline rule on malformed input
|
1 year ago |
Alex Kocharin
|
6325878f9f
|
Multiple refactors
removed unused and duplicated variables
|
3 years ago |
Alex Kocharin
|
3fc0deb38b
|
Put entities to separate token
|
3 years ago |
Alex Kocharin
|
6b58ec4245
|
Add linkifier rule to inline chain for full links
prevents emphasis from appearing in `http://example.org/foo._bar_.baz`
|
3 years ago |
Alex Kocharin
|
75037c6514
|
Put escape sequences into separate token
|
3 years ago |
Vitaly Puzrin
|
ffc49ab46b
|
Fix possible ReDOS in newline rule.
Co-authored-by: MakeNowJust <make.just.on@gmail.com>
|
3 years ago |
Alex Kocharin
|
24abaa51a6
|
Improve emphasis algorithm
This fixes quadratic complexity in `**<...>**a**<...>**`
pathological case.
|
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
|
c9dd942246
|
Fix crash when processing strikethrough
close https://github.com/markdown-it/markdown-it/issues/742
|
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
|
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 |
Alex Kocharin
|
fece91e265
|
Fix backtick algorithm
now it more closely matches one in `cmark`
|
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 |
ocavue
|
b979ca01d5
|
fix: remove unused comparison code
|
4 years ago |
Alex Kocharin
|
07a62c6c75
|
Move nested delimiter info to opening token instead of inline state
|
5 years ago |
Alex Kocharin
|
a1c93811f8
|
Fix incorrect level recalculation in text_collapse
close #466
|
5 years ago |
Vitaly Puzrin
|
c36309ef1c
|
Bump eslint & update CS
|
5 years ago |
Alex Kocharin
|
e519e6ac19
|
Fix emphasis matching where delimiters are multiple of 3
This is now allowed as per commonmark 0.29 spec:
ex***amp***le
See also:
83ed53e12a
fix https://github.com/markdown-it/markdown-it/issues/561
|
5 years ago |
Alex Kocharin
|
02a2605e84
|
Reduce maximum length for numeric html entities
This is no longer recognized as an entity, according to commonmark 0.29 tests:
�
See also:
026ca8234b
|
5 years ago |
Alex Kocharin
|
7997fdadcd
|
Apply special rules for collapsing whitespace inside code blocks
Change as per commonmark 0.29 spec
See also:
e121b4e301
|
5 years ago |
Alex Kocharin
|
2959f8c27c
|
Update CommonMark spec to 0.28
|
7 years ago |
Rifat Nabi
|
696231b28d
|
Fix a small typo
|
7 years ago |
Alex Kocharin
|
dc1c392a4d
|
Remove tabs at the beginning of the line in paragraphs
|
8 years ago |
Igor Bochkariov
|
ebc9f50759
|
fallback to reference if a link is not valid
This commit makes martdown-it pass a new example introduced in cfc8416447
```
[foo](not a link)
[foo]: /url1
.
<p><a href="/url1">foo</a>(not a link)</p>
```
Ref: https://github.com/jgm/CommonMark/issues/427
|
8 years ago |
Alex Kocharin
|
f5a06ec0b6
|
Make link/image/reference helpers overridable
|
8 years ago |
Alex Kocharin
|
f07d3862ff
|
Implement odd matching rules for emphasis
|
8 years ago |
Vitaly Puzrin
|
760050edcb
|
eslint update & code cleanup
|
9 years ago |
Alex Kocharin
|
0661eea828
|
Remove scheme whitelist for autolinks
|
9 years ago |
Alex Kocharin
|
1482c3e64f
|
Disallow spaces inside links
1. between link label and reference: `[foo] [bar]`
2. inside angular brackets: `[](<foo bar>)`
|
9 years ago |
Alex Kocharin
|
f2344b5cbc
|
Add `content` property to image token
close https://github.com/markdown-it/markdown-it/issues/184
|
9 years ago |
Alex Kocharin
|
b2883a7fd2
|
Fix meta information for autolink tokens
|
9 years ago |
Alex Kocharin
|
378ac9074e
|
Change emphasis parsing algorithm
Tokenize first, and replace tokens with emphasis tags on
a second pass using an algorithm close to one used in CM.
|
9 years ago |
Alex Kocharin
|
b2aee1a978
|
Expand tabs only when it's needed, as per CommonMark 0.21
|
9 years ago |
Alex Kocharin
|
25fea504f6
|
Update emphasis to match CommonMark 0.19
|
10 years ago |
Vitaly Puzrin
|
73599e022b
|
Fixed emphasis closing token marker, closes #69
|
10 years ago |