diff --git a/anki/exporting.py b/anki/exporting.py index fa1bdb2d9..88642c356 100644 --- a/anki/exporting.py +++ b/anki/exporting.py @@ -31,6 +31,7 @@ class Exporter: text = text.replace("\n", " ") text = text.replace("\t", " " * 8) text = re.sub("(?i)", "", text) + text = re.sub(r"\[\[type:[^]]+\]\]", "", text) if "\"" in text: text = "\"" + text.replace("\"", "\"\"") + "\"" return text