GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — 🐛 FIX: Combination of blockquotes, list and newlines causes IndexError by hukkin · Pull Request #207 · executablebooks/markdown-it-py Conversation
Contributor
Closes #204
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
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.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| state.blkIndent = oldIndent | ||
|
|
||
| state.lineMax += 1 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ]: | ||
| break | ||
| except IndexError: | ||
| from_pos += 1 |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM cheers
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Combination of blockquotes, list and newlines causes an IndexError
There was an error while loading. Please reload this page.