Commit 7d77d614 authored by myhloli's avatar myhloli
Browse files

fix(mfr): add underscore symbol to unimernet

- Add \textunderscore to the list of LaTeX patterns
- This allows the model to properly render underscore characters
parent ebb7df98
...@@ -342,7 +342,8 @@ REPLACEMENTS_PATTERNS = { ...@@ -342,7 +342,8 @@ REPLACEMENTS_PATTERNS = {
re.compile(r'\\Tilde'): r'\\tilde', re.compile(r'\\Tilde'): r'\\tilde',
re.compile(r'\\slash'): r'/', re.compile(r'\\slash'): r'/',
re.compile(r'\\textperthousand'): r'‰', re.compile(r'\\textperthousand'): r'‰',
re.compile(r'\\sun'): r'☉' re.compile(r'\\sun'): r'☉',
re.compile(r'\\textunderscore'): r'\\_'
} }
QQUAD_PATTERN = re.compile(r'\\qquad(?!\s)') QQUAD_PATTERN = re.compile(r'\\qquad(?!\s)')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment