mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 17:26:36 -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."
|
"Return an img link for LATEX, creating if necesssary."
|
||||||
txt = _latexFromHtml(col, latex)
|
txt = _latexFromHtml(col, latex)
|
||||||
fname = "latex-%s.png" % checksum(txt.encode("utf8"))
|
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):
|
if os.path.exists(fname):
|
||||||
return link
|
return link
|
||||||
elif not build:
|
elif not build:
|
||||||
|
|
Loading…
Reference in a new issue