stripLatex() does not appear to be used anywhere

This commit is contained in:
Damien Elmes 2020-02-11 13:12:09 +10:00
parent c890ef871e
commit 79c1732b00

View File

@ -38,16 +38,6 @@ if isMac:
os.environ["PATH"] += ":/usr/texbin:/Library/TeX/texbin"
def stripLatex(text) -> Any:
for match in regexps["standard"].finditer(text):
text = text.replace(match.group(), "")
for match in regexps["expression"].finditer(text):
text = text.replace(match.group(), "")
for match in regexps["math"].finditer(text):
text = text.replace(match.group(), "")
return text
def on_card_did_render(output: TemplateRenderOutput, ctx: TemplateRenderContext):
output.question_text = render_latex(
output.question_text, ctx.note_type(), ctx.col()