Skip to content

Commit

Permalink
Fix #493 persisting when code-friendly extra enabled due to regex o…
Browse files Browse the repository at this point in the history
…versight.

Forgot to apply all the same changes to code friendly strong re that I did to regular strong re
  • Loading branch information
Crozzers committed Oct 18, 2023
1 parent 191b660 commit 78b6139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/markdown2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,7 @@ def _do_tg_spoiler(self, text):

_strong_re = re.compile(r"(\*\*|__)(?=\S)(.*\S)\1", re.S)
_em_re = r"(\*|_)(?=\S)(.*?\S)\1"
_code_friendly_strong_re = re.compile(r"\*\*(?=\S)(.+?[*_]*)\*\*", re.S)
_code_friendly_strong_re = re.compile(r"\*\*(?=\S)(.*\S)\*\*", re.S)
_code_friendly_em_re = r"\*(?=\S)(.+?)\*"
def _do_italics_and_bold(self, text):
if self.extras.get('middle-word-em', True) is False:
Expand Down

0 comments on commit 78b6139

Please sign in to comment.