🐛 FIX: Combination of blockquotes, list and newlines causes IndexError#207
🐛 FIX: Combination of blockquotes, list and newlines causes IndexError#207chrisjsewell merged 3 commits intoexecutablebooks:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #207 +/- ##
==========================================
- Coverage 96.17% 96.10% -0.07%
==========================================
Files 61 61
Lines 3213 3211 -2
==========================================
- Hits 3090 3086 -4
- Misses 123 125 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
|
||
| state.blkIndent = oldIndent | ||
|
|
||
| state.lineMax += 1 |
There was a problem hiding this comment.
This increment doesn't exist in JS upstream so removing it https://github.com/markdown-it/markdown-it/blob/750a954d586c526e92bc4305bde2552743304d13/lib/rules_block/blockquote.js#L282
| ]: | ||
| break | ||
| except IndexError: | ||
| from_pos += 1 |
There was a problem hiding this comment.
This increment seems like a porting error of the JS for loop so removing it. Actually the break statement seems incorrect here. Using pass now to emulate a falsy condition of the if statement.
Closes #204