We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the codeblock is indented followed by a codeblock that is not, the parser has a really bad time trying to parse it.
I created a repo with a reproduction case: https://github.com/scinos/eslint-md-parsing-error
Input:
- list ```js foo() ``` --- ```js bar() ```
Lint errors (./node_modules/.bin/eslint .):
./node_modules/.bin/eslint .
3:3 error Insert `··` prettier/prettier 4:1 error Insert `··` prettier/prettier 5:1 error Insert `··` prettier/prettier 6:1 error Insert `··` prettier/prettier 7:1 error Insert `··` prettier/prettier 8:1 error Insert `··` prettier/prettier 9:1 error Insert `··` prettier/prettier 10:1 error Insert `··` prettier/prettier 11:1 error Insert `··` prettier/prettier 5:3 error Parsing error: Unexpected character '`'
Output when using autofix (./node_modules/.bin/eslint . --fix):
./node_modules/.bin/eslint . --fix
I found two workarounds:
The text was updated successfully, but these errors were encountered:
Looks like the problem is in the regular expression in https://github.com/leo-buneev/eslint-plugin-md/blob/master/lib/processors/mdProcessor.js#L12, as it doesn't account for indented blocks. In the above example, it thinks there is a single code block from the 3rd line to the end of the file.
Sorry, something went wrong.
Adds support for indented code blocks.
12d5a86
Fixes leo-buneev#7
Successfully merging a pull request may close this issue.
When the codeblock is indented followed by a codeblock that is not, the parser has a really bad time trying to parse it.
I created a repo with a reproduction case: https://github.com/scinos/eslint-md-parsing-error
Input:
Lint errors (
./node_modules/.bin/eslint .
):Output when using autofix (
./node_modules/.bin/eslint . --fix
):I found two workarounds:
The text was updated successfully, but these errors were encountered: