Skip to content

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
@enigma
Copy link

enigma commented Dec 6, 2024

@Crozzers thanks for the fix and @nicholasserra thanks for merging this fix! Any chance you could share when this might make it into a release? No rush - just helps us to plan around it. Thanks!

@nicholasserra
Copy link
Collaborator

@enigma I'll try to do a release this week

@nicholasserra
Copy link
Collaborator

@enigma 2.5.2 has been released

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

3 participants