from github.com/polarwinkel/mdtex2html

This commit is contained in:
binary-husky
2023-03-22 19:46:08 +08:00
committed by GitHub
parent b8d802a922
commit a880819ffd

View File

@@ -1,3 +1,5 @@
# This program is written by: https://github.com/polarwinkel/mdtex2html
from latex2mathml.converter import convert as tex2mathml from latex2mathml.converter import convert as tex2mathml
import re import re
@@ -75,4 +77,4 @@ def convert(mdtex, extensions=[], splitParagraphs=True):
result = convert(parts[0]+mathml+incomplete, extensions, splitParagraphs=False) result = convert(parts[0]+mathml+incomplete, extensions, splitParagraphs=False)
if not found: if not found:
result = mdtex result = mdtex
return result return result