mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #759] Exception when calling forEachHeading #531
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#531
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrsrhodehum on GitHub (Mar 30, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/759
Looks like markdownlint-cli2 version 0.6.0 is not compatible with markdownlint-rule-helpers version 0.19.0. When trying to call forEachHeading from a custom markdownlint rule:
I got the following exception:
Exception has occurred: TypeError: Cannot read properties of undefined (reading 'markdownit')@DavidAnson commented on GitHub (Mar 30, 2023):
I don't understand. If you are getting an exception from custom rule code, why do you think that is an issue with markdownlint-cli2? If the custom rule does not work with the latest version of markdownlint-rule-helpers, it should reference an earlier version in package.json.