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 List Ignore Type Ignoring More than It Should when Sublists Are Present #1269

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

pjkaufman
Copy link
Collaborator

Fixes #1259

There was an issue where a list with a sublist would occasionally ignore more than it should of as part of the list ignore. This would cause unexpected results as seen on the bug report. To fix this, we need to remove overlapping positions in the position list. This allows for just ignoring the list in question instead of the sublist and then the list which caused more than what was intended to be ignored.

Changes Made:

  • Added a UT for the scenario in question
  • Updated the ignore MdAST type logic for lists to just ignore non-overlapping positions

…f a file when dealing with lists and sublists
@pjkaufman pjkaufman self-assigned this Feb 8, 2025
@pjkaufman pjkaufman added the bug Something isn't working label Feb 8, 2025
@pjkaufman pjkaufman merged commit 1f62de7 into platers:master Feb 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant