Commit 329adda3 authored by RawKStar77's avatar RawKStar77

Fix small KaTeX display math.

KaTeX default renders math in an inline style. This was creating problems for KaTeX rendered display, and making it looked bunched up and small.
parent af0e036b
......@@ -289,7 +289,7 @@ markdown = ['$filter', '$sanitize', '$sce', '$timeout', ($filter, $sanitize, $sc
if startMath > endMath
endMath = index + 2
try
katex.renderToString($sanitize textToCheck.substring(startMath, index))
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