mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
remap mnemosyne latex tags
This commit is contained in:
parent
6ffa8cd191
commit
bf59bcd1d7
1 changed files with 3 additions and 0 deletions
|
@ -72,4 +72,7 @@ class Mnemosyne10Importer(Importer):
|
|||
def fudgeText(self, text):
|
||||
text = text.replace("\n", "<br>")
|
||||
text = re.sub('<sound src="(.*?)">', '[sound:\\1]', text)
|
||||
text = re.sub('<(/?latex)>', '[\\1]', text)
|
||||
text = re.sub('<(/?\$)>', '[\\1]', text)
|
||||
text = re.sub('<(/?\$\$)>', '[\\1]', text)
|
||||
return text
|
||||
|
|
Loading…
Reference in a new issue