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: Paragraph Blank Lines Not Being Consistent Across List Types and Different List Indicators #1028

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

pjkaufman
Copy link
Collaborator

Fixes #1014

There was an issue where the logic for Paragraph Blank Lines was not looking for indented unordered, ordered, or checklist list items. It was also not looking for ordered list items that had an end list style of ). There was also an issue where it did not consider + and * to be list indicators at the start of line when followed by a space or tab. This was simple to fix by swapping to startsWithListMarkerRegex as a regex match since it handles these scenarios already.

Changes Made:

  • Swapped to use startsWithListMarkerRegex instead of some of the other list checks
  • Added UTs for several different scenarios to make sure they were working now

pjkaufman and others added 2 commits February 28, 2024 15:44
…ist items and ordered lists as well as some types of ordered and unordered lists
@pjkaufman pjkaufman added bug Something isn't working markdown General Markdown or Markdown related issue or feature labels Feb 28, 2024
@pjkaufman pjkaufman self-assigned this Feb 28, 2024
@pjkaufman pjkaufman merged commit c0ff56a into platers:master Feb 28, 2024
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 markdown General Markdown or Markdown related issue or feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Paragraph blank lines Not Behaving Uniformly with Different List Indicators and Types
1 participant