Skip to content

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

Development

Successfully merging this pull request may close these issues.

Bug: Removing multiple spaces in text after nested list may not work depending on the number of characters in the list

1 participant