mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
add class=latex to latex img tags
This commit is contained in:
parent
5bb09ed77a
commit
d46bbabae7
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ def _imgLink(col, latex, model):
|
|||
"Return an img link for LATEX, creating if necesssary."
|
||||
txt = _latexFromHtml(col, latex)
|
||||
fname = "latex-%s.png" % checksum(txt.encode("utf8"))
|
||||
link = '<img src="%s">' % fname
|
||||
link = '<img class=latex src="%s">' % fname
|
||||
if os.path.exists(fname):
|
||||
return link
|
||||
elif not build:
|
||||
|
|
Loading…
Reference in a new issue