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 middle-word-em extra preventing strongs from being recognized (#606) #607

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

Crozzers
Copy link
Contributor

This PR fixes #606 by altering the regex used in middle-word-em so that it doesn't match against intentional emphasis markers.

Previously, a snippet such as **one_two_three** would have been matched aside from the last character. This is due to the old regex matching emphasis markers without any regard for whether they are em (single) or strong (double).

The new regex will only match markers that aren't preceded or followed by a similar marker

@nicholasserra
Copy link
Collaborator

LGTM thanks!

@nicholasserra nicholasserra merged commit 1d37310 into trentm:master Oct 28, 2024
15 checks passed
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

Successfully merging this pull request may close these issues.

middle-word-em=False does not emit expected strong
2 participants