Alex Kocharin
|
b2aee1a978
|
Expand tabs only when it's needed, as per CommonMark 0.21
|
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 |
Vitaly Puzrin
|
90e5a9c9cc
|
Bulk rules rename (unify)
|
10 years ago |
Alex Kocharin
|
e7c60e1a01
|
Fix fences rule
closing fence should not be indented more than 3 spaces
|
10 years ago |
Alex Kocharin
|
065eba8bda
|
Add "lines" attribute to all block-level tokens
(except for the closing ones)
|
10 years ago |
Alex Kocharin
|
46402a32b4
|
Replace bqMarks logic with negative tShift
|
10 years ago |
Vitaly Puzrin
|
5bd71f91a7
|
Moved state helpers to State* classes
|
10 years ago |
Vitaly Puzrin
|
b9d3828a5d
|
Cleanup
|
10 years ago |
Alex Kocharin
|
0453b72bf1
|
Rename "lexer" to "parser"
and move rules from lexer_* to rules_*
|
10 years ago |
Alex Kocharin
|
46dc1f93ac
|
Add state.level everywhere
|
10 years ago |
Vitaly Puzrin
|
d87eeb2ab0
|
Assorted fixes & speed opts
|
10 years ago |
Alex Kocharin
|
e3a7ddf4a8
|
Blockquote parsing improved
|
10 years ago |
Vitaly Puzrin
|
9728b685ec
|
Rewritten string fetch for inline tokenizer + list fixes
|
10 years ago |
Alex Kocharin
|
d6651b5ce6
|
Reimplement lists using indent algorithm
And put blkIndents everywhere appropriate in block rules.
|
10 years ago |
Alex Kocharin
|
470bfecbd4
|
Better algorithm for parsing block quotes
|
10 years ago |
Vitaly Puzrin
|
e0a153fe09
|
fences, heading, list fixes for stmd cases
|
10 years ago |
Vitaly Puzrin
|
abc2900ce6
|
Pass token index to renderer fn + use it for br magick
|
10 years ago |
Alex Kocharin
|
1b60163ba3
|
Moved empty lines logic from rules to block parser
|
10 years ago |
Vitaly Puzrin
|
a8f9ea5b57
|
replaced jshint with eslint for better style check
|
10 years ago |
Vitaly Puzrin
|
8cf045d940
|
Implemented nested blocks lexing, now block quotes works as expected
|
10 years ago |
Vitaly Puzrin
|
4e0453e4a5
|
Fixed fenses & updated tests
|
10 years ago |
Vitaly Puzrin
|
52b4e44de4
|
Splitted block lexer & index to files
|
10 years ago |