You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constouterSpace=options&&options.outerSpace||false;// inline rules, effectively `dollars` require surrounding spaces, i.e ` $\psi$ `, to be accepted as inline formulas. This is primarily a guard against misinterpreting single `$`'s in normal markdown text (relevant for inline math only. Default: `false`, for backwards compatibility).
@@ -30,7 +39,7 @@ function texmath(md, options) {
30
39
31
40
for(construleoftexmath.rules[delimiters].block){
32
41
md.block.ruler.before('fence',rule.name,texmath.block(rule));// ! important for ```math delimiters
33
-
md.renderer.rules[rule.name]=(tokens,idx)=>rule.tmpl.replace(/\$2/,tokens[idx].info)// equation number .. ?
42
+
md.renderer.rules[rule.name]=(tokens,idx)=>rule.tmpl.replace(/\$2/,escapeHTML(tokens[idx].info))// equation number .. ?
0 commit comments