From bf59bcd1d7fb608b8b0ce9098f27f1af4f8f7a8a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 7 Jun 2009 02:50:09 +0900 Subject: [PATCH] remap mnemosyne latex tags --- anki/importing/mnemosyne10.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/anki/importing/mnemosyne10.py b/anki/importing/mnemosyne10.py index 61b9a1020..ef88214d2 100644 --- a/anki/importing/mnemosyne10.py +++ b/anki/importing/mnemosyne10.py @@ -72,4 +72,7 @@ class Mnemosyne10Importer(Importer): def fudgeText(self, text): text = text.replace("\n", "
") text = re.sub('', '[sound:\\1]', text) + text = re.sub('<(/?latex)>', '[\\1]', text) + text = re.sub('<(/?\$)>', '[\\1]', text) + text = re.sub('<(/?\$\$)>', '[\\1]', text) return text