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

Latest Markdownlint VS Code extension (markdownlint v0.34.0) reports exception running this rule #7

Open
onebytegone opened this issue May 1, 2024 · 1 comment

Comments

@onebytegone
Copy link
Contributor

onebytegone commented May 1, 2024

image

Error text:

indent-alignment: Indent alignment of list items, wrapped lines, and blocks [This rule threw an exception: Cannot read properties of undefined (reading 'tokens')] markdownlint(indent-alignment)

Sample document:

# Heading

Lorem ipsum dolor sit amet.
@onebytegone
Copy link
Contributor Author

In markdownlint 0.34.0, micromark was moved behind a "feature" flag (With regards to the custom rule parser, the docs state "The value 'micromark' is valid but is NOT currently supported."). Based on DavidAnson/markdownlint#1298 (comment) it seems support for using micromark will return in the future. However, until the markdownlint API changes, there doesn't appear to be much that can be done to resolve this.

@onebytegone onebytegone changed the title VS Code reports exception when markdown file starts with front-matter Latest Markdownlint VS Code extension (markdownlint v0.34.0) reports exception running this rule Jul 23, 2024
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

No branches or pull requests

2 participants