Skip to content

Commit

Permalink
return escaped \$ as plain <p>$</p>
Browse files Browse the repository at this point in the history
  • Loading branch information
polarwinkel committed Jan 26, 2024
1 parent e954831 commit f340f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mdtex2html/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def convert(mdtex, extensions=[], splitParagraphs=True):
result = convert(parts[0]+mathml+incomplete, extensions, splitParagraphs=False)
# else find first \[..\]-equation:
else:
mdtex = mdtex.replace(r'\$', '$')
parts = re.split(r'\\\[', mdtex, 1)
if len(parts)>1 and not found:
found = True
Expand Down

0 comments on commit f340f98

Please sign in to comment.