mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
replace <div> with spaces in latex
This commit is contained in:
parent
4b01c3c82c
commit
f3a1916c07
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ def _latexFromHtml(col, latex):
|
|||
continue
|
||||
latex = latex.replace(match.group(), entitydefs[match.group(1)])
|
||||
latex = re.sub("<br( /)?>", "\n", latex)
|
||||
# replace <div> etc with spaces
|
||||
latex = re.sub("<.+?>", " ", latex)
|
||||
latex = stripHTML(latex)
|
||||
return latex
|
||||
|
||||
|
|
Loading…
Reference in a new issue