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