Alex Kocharin
|
77e8b6cad0
|
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
|
10 years ago |
Alex Kocharin
|
7f8d3ebe82
|
Update strikethrough scanDelims to match emphasis
|
10 years ago |
Alex Kocharin
|
f1aff8a5b9
|
Add StateCore.Token and StateCore.push()
so all state objects would have roughly the same interface
|
10 years ago |
Alex Kocharin
|
5a390adbbc
|
Make Token class accessible from a State
|
10 years ago |
Vitaly Puzrin
|
d76475721c
|
typo fix
|
10 years ago |
Vitaly Puzrin
|
00117cb2e7
|
Changes to improve speed on node 0.12 & iojs
|
10 years ago |
Vitaly Puzrin
|
e6e573efa6
|
Added example of tuneable text rule, for memory
|
10 years ago |
Vitaly Puzrin
|
18d80c6f0b
|
Moved validateLink() to root class
|
10 years ago |
Alex Kocharin
|
bb4dcf48f4
|
Set token.markup whereever appropriate
|
10 years ago |
Alex Kocharin
|
4aabd5592e
|
Use a common class for tokens
|
10 years ago |
Alex Kocharin
|
ecd010c020
|
Bring emphasis up to spec
|
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
|
e1f6e3b6f8
|
Use new emphasis logic in strikethrough
|
10 years ago |
Vitaly Puzrin
|
6ab7cc30a4
|
Use the same regexp for comments as reference parser
|
10 years ago |
Vitaly Puzrin
|
c2312d971f
|
Fixed punctuation check in emphasis
|
10 years ago |
Vitaly Puzrin
|
8267f509b0
|
Added # to terminator chars, closes #31
|
10 years ago |
Vitaly Puzrin
|
cda6c513b6
|
backtick -> backticks (revert)
|
10 years ago |
Vitaly Puzrin
|
2090fd4998
|
del -> strikethrough
|
10 years ago |
Vitaly Puzrin
|
90e5a9c9cc
|
Bulk rules rename (unify)
|
10 years ago |
Vitaly Puzrin
|
57d56c43fb
|
Removed footnote rules (move to plugin)
|
10 years ago |
Vitaly Puzrin
|
792f386840
|
Fixed inline html comments parse
|
10 years ago |
Alex Kocharin
|
b7914cb08a
|
Update CommonMark spec to 0.15 + emphasis changes
|
10 years ago |
Alex Kocharin
|
8cb29935a3
|
Move reference rule to the block chain
|
10 years ago |
Vitaly Puzrin
|
04ee60d3c4
|
Removed unused code & improved tests coverage for some rules.
|
10 years ago |
Alex Kocharin
|
6497e9a80f
|
Split links rule to link+image
|
10 years ago |
Vitaly Puzrin
|
2c433e10a0
|
Moved ins/mark/sub/sup to plugins
|
10 years ago |
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 |