Skip to content

Commit

Permalink
Fix failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Crozzers committed Jan 18, 2024
1 parent 92eb442 commit 3d6ecca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/markdown2.py
Expand Up @@ -803,7 +803,7 @@ def _hash_html_block_sub(self, match, raw=False):
# if MD is on same line as opening tag then split across two lines
lines = list(filter(None, (re.split(r'(.*?<%s.*markdown=.*?>)' % tag, lines[0])))) + lines[1:]
# if MD on same line as closing tag, split across two lines
lines = lines[:-1] + list(filter(None, re.split(r'(.*?</%s>.*?$)' % tag, lines[-1])))
lines = lines[:-1] + list(filter(None, re.split(r'(\s*?</%s>.*?$)' % tag, lines[-1])))
# extract key sections of the match
first_line = lines[0]
middle = '\n'.join(lines[1:-1])
Expand Down

0 comments on commit 3d6ecca

Please sign in to comment.