Alex Kocharin
|
de814cae73
|
fix quadratic complexity in reference parser (#1004)
|
9 months ago |
Vitaly Puzrin
|
8b815a6072
|
lint: reduce empty lines
|
12 months ago |
Vitaly Puzrin
|
5578e698af
|
Cleanup internal exports
|
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 |
Alex Kocharin
|
6325878f9f
|
Multiple refactors
removed unused and duplicated variables
|
3 years ago |
Alex Kocharin
|
2290e109c5
|
Disallow escaped spaces inside link destination
|
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
|
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 |
Alex Kocharin
|
f872cbc31e
|
Allow spaces inside brackets in links
This is now allowed as per commonmark 0.29 spec:
[inline link](<./inline link.md>)
fix https://github.com/markdown-it/markdown-it/issues/567
|
5 years ago |
Alex Kocharin
|
2959f8c27c
|
Update CommonMark spec to 0.28
|
7 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
|
77e8b6cad0
|
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
|
10 years ago |
Alex Kocharin
|
4f6e8d4830
|
Improve replaceEntities handling
1. Use unescapeAll instead of replaceEntities(unescapeMd(...))
2. Move replaceEntities(title) out of the renderer.
|
10 years ago |
Alex Kocharin
|
b8af54ba8e
|
Use unescapeAll for links unescaping
|
10 years ago |
Vitaly Puzrin
|
e77666c4a0
|
moved normalizeReference to utils, closes #42
|
10 years ago |
Alex Kocharin
|
4ce003cb82
|
Remove stateInline.labelUnmatchedScopes
looks like a dead code
|
10 years ago |
Vitaly Puzrin
|
20e8d93e8d
|
Reverted c7d4f7b (no fix needed)
|
10 years ago |
Vitaly Puzrin
|
c7d4f7bcf6
|
Fixed newline in link title
|
10 years ago |
Alex Kocharin
|
8cb29935a3
|
Move reference rule to the block chain
|
10 years ago |
Vitaly Puzrin
|
a66e29f8d0
|
Place md link to states and remove other aliases
|
10 years ago |
Alex Kocharin
|
08f2d3eb4d
|
Forbid nested links, prefer inner one
|
10 years ago |
Vitaly Puzrin
|
a5a04532df
|
Both helpers & utils are not in each instance of main parser
|
10 years ago |
Alex Kocharin
|
19e1aa28ea
|
use .toUpperCase() for link normalization
because __proto__ has magic and __PROTO__ doesn't
+ comments for the rest of ':' stuff
|
10 years ago |
Vitaly Puzrin
|
7f7260d021
|
Better error handling in link normalizer + more tests for edge cases
|
10 years ago |
Alex Kocharin
|
d54ed887f4
|
Normalize links before they hit renderer
|
10 years ago |
Vitaly Puzrin
|
35063086ba
|
Moved link parse functions to helpers
|
10 years ago |