Vitaly Puzrin
7dfcf69b71
standard: no spaces near array brackets
12 months ago
Vitaly Puzrin
0eb4cb96a4
standard: space before function params
12 months ago
Vitaly Puzrin
d0219010ad
standard: remove semi
12 months ago
Vitaly Puzrin
88b8669c46
var => const, let
12 months ago
Vitaly Puzrin
e92e776411
Rewrite core to es6 modules
1 year ago
Alex Kocharin
9ff460ef87
Drop a lot of extra code from blockquotes
1st iteration before the loop is exactly the same as a part of that loop
this effectively replaces:
```
do(0)
for (i = 1; i < x; i++) do(i)
```
with:
```
for (i = 0; i < x; i++) do(i)
```
3 years ago
Vas Sudanagunta
6629917dec
Remove unnecessary calculation
4 years ago
Alex Kocharin
b3531c876e
Fix blockquotes
```
>>> foo
> bar
>>> baz
```
this is now a single blockquote as per spec
close https://github.com/markdown-it/markdown-it/issues/696
4 years ago
Alex Kocharin
a733ffa8b6
Fix blockquote termination inside lists
close https://github.com/markdown-it/markdown-it/issues/386
7 years ago
Alex Kocharin
c57f593b23
Fix blockquote termination by list item
close https://github.com/markdown-it/markdown-it/issues/338
8 years ago
Alex Kocharin
f0e7e562ea
Fix blockquote termination inside indented lists
close https://github.com/markdown-it/markdown-it/issues/329
8 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
b2aee1a978
Expand tabs only when it's needed, as per CommonMark 0.21
9 years ago
Alex Kocharin
d292f72b69
Add/fix indentation checking in blockquotes
fix #111
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
18efc864bd
Removed dead code in block rules & improved tests coverage
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
2b741deb18
Isolated rules management & rules cache build
10 years ago
Alex Kocharin
5c5f2309de
Fix blockquote line numbers
close #86
10 years ago
Alex Kocharin
065eba8bda
Add "lines" attribute to all block-level tokens
(except for the closing ones)
10 years ago
Vitaly Puzrin
07a5bf5c7f
listMode -> parentType
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
b27c630815
Code structure and options refactoring
10 years ago
Vitaly Puzrin
892460ed0b
Options rename
10 years ago
Alex Kocharin
9aea37acc1
Limit element depth
10 years ago
Vitaly Puzrin
7390503066
Moved rules manager to separate class (block parser only)
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
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
Alex Kocharin
691516762a
Fix blockquotes inside lists
Need to zero out blkIndent, failed test:
---
* a
> b
>
* c
---
10 years ago
Alex Kocharin
e3a7ddf4a8
Blockquote parsing improved
10 years ago
Alex Kocharin
7a8899e501
Fix nested elements inside lists
"# foo" should be parsed as "h1", not as a continuation
---
- test
# foo
---
10 years ago
Vitaly Puzrin
9728b685ec
Rewritten string fetch for inline tokenizer + list fixes
10 years ago
Alex Kocharin
60f36941fa
Better algorithm for parsing lists
10 years ago
Alex Kocharin
470bfecbd4
Better algorithm for parsing block quotes
10 years ago
Alex Kocharin
1b60163ba3
Moved empty lines logic from rules to block parser
10 years ago
Vitaly Puzrin
65f096804a
list review & reorganize
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
Alex Kocharin
bb0175e194
Added bullet list stub
This is incomplete yet:
- one element per list only
- list item may contain only one paragraph
10 years ago
Alex Kocharin
0912291a85
Added blockquotes stub
10 years ago