def on_card_did_render( output: TemplateRenderOutput, ctx: TemplateRenderContext ) -> None: output.question_text = render_latex( output.question_text, ctx.note_type(), ctx.col() ) output.answer_text = render_latex(output.answer_text, ctx.note_type(), ctx.col())
def on_card_did_render(text: Tuple[str, str], ctx: TemplateRenderContext) -> Tuple[str, str]: qtext, atext = text qtext = render_latex(qtext, ctx.note_type(), ctx.col()) atext = render_latex(atext, ctx.note_type(), ctx.col()) return (qtext, atext)