strip [[type:...]] in card export
This commit is contained in:
parent
d0985a4e7c
commit
1c4a40a3cc
@ -31,6 +31,7 @@ class Exporter:
|
||||
text = text.replace("\n", " ")
|
||||
text = text.replace("\t", " " * 8)
|
||||
text = re.sub("(?i)<style>.*?</style>", "", text)
|
||||
text = re.sub(r"\[\[type:[^]]+\]\]", "", text)
|
||||
if "\"" in text:
|
||||
text = "\"" + text.replace("\"", "\"\"") + "\""
|
||||
return text
|
||||
|
Loading…
Reference in New Issue
Block a user