Commit 94cfff2b authored by gergely-ujvari's avatar gergely-ujvari

Merge pull request #1850 from hypothesis/fixForSmallKaTeXFonts

Fix small KaTeX display math.
parents 935290fb 859f7957
......@@ -289,7 +289,8 @@ markdown = ['$filter', '$sanitize', '$sce', '$timeout', ($filter, $sanitize, $sc
if startMath > endMath
endMath = index + 2
try
katex.renderToString($sanitize textToCheck.substring(startMath, index))
# \\displaystyle tells KaTeX to render the math in display style (full sized fonts).
katex.renderToString($sanitize "\\displaystyle {" + textToCheck.substring(startMath, index) + "}")
catch
loadMathJax()
mathJaxFallback = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment