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 |