Vitaly Puzrin
8b815a6072
lint: reduce empty lines
1 year ago
Vitaly Puzrin
efc714f702
standard: more tweaks & simplify eslint config
1 year ago
Vitaly Puzrin
0eb4cb96a4
standard: space before function params
1 year ago
Vitaly Puzrin
d0219010ad
standard: remove semi
1 year ago
Vitaly Puzrin
88b8669c46
var => const, let
1 year ago
Vitaly Puzrin
e92e776411
Rewrite core to es6 modules
1 year ago
Chris Sewell
13829a2c7e
Remove spurious state attribute ( #937 )
* Remove spurious state attribute
As far as I can see, this attribute is no longer used?
* Update pathological.json
* Update test/pathological.json
1 year ago
Alex Kocharin
a1c93811f8
Fix incorrect level recalculation in text_collapse
close #466
6 years ago
Alex Kocharin
fa7a419161
Fix edge case for list indents
Now list items cannot be indented more than 4 spaces from the first,
as per commonmark 0.29 spec:
- item 1
- item 2
- item 3
- item 4
- this one is a paragraph continuation
6 years ago
Alex Kocharin
7a053ef4c5
Fix tab behavior inside blockquotes
8 years ago
Alex Kocharin
1ecf143db0
Fix lists and headings
8 years ago
Alex Kocharin
e5696e5b36
Partially fix tabs inside code blocks
8 years ago
Alex Kocharin
b2aee1a978
Expand tabs only when it's needed, as per CommonMark 0.21
10 years ago
Alex Kocharin
c5ee94aaf6
Fix skipLastLF handling in getLines
fix #116
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
Alex Kocharin
4aabd5592e
Use a common class for tokens
10 years ago
Vitaly Puzrin
a66e29f8d0
Place md link to states and remove other aliases
10 years ago
Alex Kocharin
3f16868edd
Add definition lists
10 years ago
Vitaly Puzrin
c70700151a
Updated parsers API - don't rewrite token arrays in StateCore
10 years ago
Vitaly Puzrin
a9895f72d0
Fixed regression in 1.2.1 release, closes #88
10 years ago
Vitaly Puzrin
0cf8b0f362
StateBlock() cleanup
10 years ago
Vitaly Puzrin
07a5bf5c7f
listMode -> parentType
10 years ago
Vitaly Puzrin
7ea9c2cffb
StateBlock cleanup
10 years ago
Alex Kocharin
46402a32b4
Replace bqMarks logic with negative tShift
10 years ago
Vitaly Puzrin
a48454b99a
Clarified comments
10 years ago
Vitaly Puzrin
5bd71f91a7
Moved state helpers to State* classes
10 years ago
Vitaly Puzrin
ee42a637c4
Removed unused properties in StateBlock
10 years ago
Vitaly Puzrin
a759af6f8a
Perf: speedup cache creation in StateBlock
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
Alex Kocharin
45da119338
Parse link reference definitions
10 years ago
Alex Kocharin
1449ac720a
Remove stopOnTwoNewlines argument in block parser
Replaced with block.listMode (boolean)
10 years ago
Vitaly Puzrin
c384f13798
API & options names polish
10 years ago
Vitaly Puzrin
e6341a4812
Files reorganize/cleanup
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
Vitaly Puzrin
80b4223040
Replace tabs properly
10 years ago
Vitaly Puzrin
4aa169634f
Tight lists + shink start of strings in inline blocks
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
52b4e44de4
Splitted block lexer & index to files
10 years ago
Vitaly Puzrin
9c99ff47a1
lhead, fences, indent cache
10 years ago
Vitaly Puzrin
c72bba2090
Added lexer/renderer stubs
10 years ago
Vitaly Puzrin
c8be724b3f
First commit
10 years ago