Skip to content
New issue

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

fix: add micromark parser to markdownlint config #11

Conversation

MatheusBaldi
Copy link
Contributor

In markdownlint 0.36.0, the support for micromark returned. Adding it in the config object fixes the error described in this issue

The new micromark version changes some previously assumed parser behaviors. It causes some errors related to nested intentation in HTML snippets. Since currently there is no need to lint HTML, the tokens related to it are now ignored.

Introduces a new test verification to prevent an error where htmlText tokens cause other text tokens to appear to be indented.

@MatheusBaldi MatheusBaldi force-pushed the MatheusBaldi/fix-indent-alignment-exception branch from d96016d to 7f48937 Compare November 27, 2024 14:09
Copy link
Contributor

@MrMarCode MrMarCode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working through this upgrade. Your hard work is appreciated!

Note: I usually don't test my own suggestions thoroughly. So if you could always be sure to test changes before finishing up, even if they are based on suggestions, that would be appreciated as well!

src/indent-alignment.js Outdated Show resolved Hide resolved
src/indent-alignment.js Outdated Show resolved Hide resolved
src/indent-alignment.js Outdated Show resolved Hide resolved
src/indent-alignment.js Outdated Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
@MatheusBaldi MatheusBaldi force-pushed the MatheusBaldi/fix-indent-alignment-exception branch from 7f48937 to d4bc349 Compare November 29, 2024 12:57
In markdownlint 0.36.0, the support for micromark returned. Adding it in the config
object fixes the error described in
[this issue](#7)

The new micromark version changes some previously assumed parser behaviors. It causes
some errors related to nested intentation in HTML snippets. Since currently there is no
need to lint HTML, the tokens related to it are now ignored.

Introduces a new test verification to prevent an error where  tokens cause
other text tokens to appear to be indented.
@MatheusBaldi MatheusBaldi force-pushed the MatheusBaldi/fix-indent-alignment-exception branch from d4bc349 to 3f05e92 Compare November 29, 2024 13:13
Copy link
Contributor

@MrMarCode MrMarCode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks Matheus! 🙂

@onebytegone onebytegone merged commit 94b1ea9 into silvermine:master Dec 1, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants