Skip to content

Commit d6c8c6b

Browse files
committed
SVG caching
1 parent 89489da commit d6c8c6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

math2svg/math2svg.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ local _cache = {}
8585
_cache.DisplayMath = {}
8686
_cache.InlineMath = {}
8787

88+
local tags = {}
89+
tags.DisplayMath = {'<span class="math display">', '</span>'}
90+
tags.InlineMath = {'<span class="math inline">', '</span>'}
91+
8892

8993
function Meta(meta)
9094

@@ -106,10 +110,6 @@ function Math(elem)
106110

107111
local svg = nil
108112

109-
local tags = {}
110-
tags.DisplayMath = {'<span class="math display">', '</span>'}
111-
tags.InlineMath = {'<span class="math inline">', '</span>'}
112-
113113
local argumentlist = {
114114
'--speech', speech,
115115
'--linebreaks', linebreaks,

0 commit comments

Comments
 (0)