Commit a52107b2 authored by RawKStar77's avatar RawKStar77

Patch for previous commit

parent 7b08a9e8
......@@ -295,12 +295,13 @@ markdown = ['$filter', '$sanitize', '$sce', '$timeout', ($filter, $sanitize, $sc
markdown = $sanitize $filter('converter') value
try
rendered = renderMath markdown
scope.rendered = $sce.trustAsHtml rendered
catch
if !MathJax?
loadMathJax()
rendered = markdown
MathJax?.Hub.Queue(["Typeset", MathJax.Hub, output])
scope.rendered = $sce.trustAsHtml rendered
$timeout -> MathJax?.Hub.Queue(["Typeset", MathJax.Hub, output])
# React to the changes to the input
inputEl.bind 'blur change keyup', ->
......
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