Vitaly Puzrin
|
e72603af70
|
Moved nesting check from rules to upper level
|
10 years ago |
Vitaly Puzrin
|
a66e29f8d0
|
Place md link to states and remove other aliases
|
10 years ago |
Vitaly Puzrin
|
814f85af96
|
Fixed sub-sup tokens format. Closes #21
|
10 years ago |
Vitaly Puzrin
|
56001200c0
|
Added link target attribute support for plugins
|
10 years ago |
Alex Kocharin
|
ea62dda30b
|
Remove state.linkLevel
It's redundant after the changes in links algorithm.
|
10 years ago |
Alex Kocharin
|
1d07999279
|
Avoid crash in links when references are disabled
|
10 years ago |
Alex Kocharin
|
08f2d3eb4d
|
Forbid nested links, prefer inner one
|
10 years ago |
Alex Kocharin
|
8470c1cae8
|
Fix an issue with links skipping space after them
|
10 years ago |
Alex Kocharin
|
d7221761fb
|
Render image labels as text
|
10 years ago |
Alex Kocharin
|
0c0917048c
|
Allow sequence of 4+ markers in pairs
|
10 years ago |
Alex Kocharin
|
e12d5cbdad
|
Allow sequence of 4+ markers in emphases
In old CommonMark spec they were always parsed literally.
|
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
|
671fd4f3ed
|
eslint rules & coding style update
|
10 years ago |
Alex Kocharin
|
1ff69abeba
|
Fix arbitrary keys in refs/footnotes/abbrs
|
10 years ago |
Vitaly Puzrin
|
761947f2fb
|
More safe properties check
|
10 years ago |
Alex Kocharin
|
4649deb59b
|
Deduplicate footnotes
|
10 years ago |
Alex Kocharin
|
32423dbac5
|
Fix text after inline footnotes
|
10 years ago |
Alex Kocharin
|
faae7485b7
|
Add footnote rules
|
10 years ago |
Alex Kocharin
|
d54ed887f4
|
Normalize links before they hit renderer
|
10 years ago |
Vitaly Puzrin
|
c70700151a
|
Updated parsers API - don't rewrite token arrays in StateCore
|
10 years ago |
Vitaly Puzrin
|
35063086ba
|
Moved link parse functions to helpers
|
10 years ago |
Vitaly Puzrin
|
460ba580ee
|
perf: optimized text scans
|
10 years ago |
Alex Kocharin
|
74602dba90
|
Fix spaces in subscript and superscript
|
10 years ago |
Alex Kocharin
|
d5e8e61b6b
|
Check validation flag instead of hardcoding rules
|
10 years ago |
Alex Kocharin
|
f28ab537e4
|
Fix subscript and superscript rules
|
10 years ago |
Alex Kocharin
|
3b785a0bfa
|
Add subscript and superscript
|
10 years ago |
Alex Kocharin
|
666e94a47a
|
Change priority for all pairs
`**foo __bar** baz__` is now parsed as `<strong>foo __bar</strong> baz__`
|
10 years ago |
Peter deHaan
|
a519ef26c4
|
Fix typo
|
10 years ago |
Peter deHaan
|
fdb868d815
|
FIx typo
|
10 years ago |
Vitaly Puzrin
|
220efa32e8
|
updated eslint to 9.1 & did appropriate changes in sources
|
10 years ago |
Vitaly Puzrin
|
54990dd7c5
|
Updated inline text scan logic
|
10 years ago |
Vitaly Puzrin
|
1e65876d7b
|
Fixed prev commit
|
10 years ago |
Vitaly Puzrin
|
6c3ba9eb99
|
Perf: md unescaping opt
|
10 years ago |
Vitaly Puzrin
|
8f909bcf33
|
Moved HTML escaping to renderer
|
10 years ago |
Vitaly Puzrin
|
0411b14cf5
|
Added <mark> support
|
10 years ago |
Vitaly Puzrin
|
710a62f1d5
|
Added <ins> support
|
10 years ago |
Vitaly Puzrin
|
f15fa5ed23
|
Renamed back `strikethrough` to `del`
|
10 years ago |
Alex Kocharin
|
1676e10ee8
|
Fix performance when nested token doesn't match
close #53
|
10 years ago |
Alex Kocharin
|
c9adb050e0
|
Preserve initial position in links
fix #55
|
10 years ago |
Vitaly Puzrin
|
6ce8e1b61d
|
Perf: improved inlines cache logic
|
10 years ago |
Vitaly Puzrin
|
2040c4f02e
|
StateInline props rename
|
10 years ago |
Alex Kocharin
|
ba2463f2f5
|
Remove dead code in em/del
|
10 years ago |
Alex Kocharin
|
f74bbf2515
|
Tweak emphasis parsing algorithm
In the case of intersecting tags (e. g. "*foo _bar* baz_") last
complete tag should have a priority.
|
10 years ago |
Alex Kocharin
|
5d772b9bb6
|
Add validation mode to all inline rules
|
10 years ago |
Vitaly Puzrin
|
bf1016510b
|
typo fix
|
10 years ago |
Vitaly Puzrin
|
0e8d9bec18
|
reordered StateInline properties
|
10 years ago |
Alex Kocharin
|
7abfb2718c
|
Treat newline as a whitespace in em and del
|
10 years ago |
Alex Kocharin
|
5a73b286b6
|
Update emphasis rule to the latest CommonMark spec
|
10 years ago |
Vitaly Puzrin
|
199976d09e
|
parse backticks without regex exec
|
10 years ago |