 # It's called by components like HTML after they're rendered
 typesetMath = (root, windowImpl = window) ->
   # schedule a Mathjax pass if there is at least one [data-math] or <math> element present
-  console.log 'render math', root.innerHTML, root.querySelector('math:not(.hild)')
-  debugger
 
   if windowImpl.MathJax?.Hub?.Queue? and root.querySelector(COMBINED_MATH_SELECTOR)
     typesetDocument(windowImpl)

    windowImpl.MathJax.Hub.Typeset(latexNodes)

  mathMLNodes = _.toArray(windowImpl.document.querySelectorAll(MATH_ML_SELECTOR))
  console.log "MATML", mathMLNodes, windowImpl.document.innerHTML
  unless _.isEmpty(mathMLNodes)
    # style the entire document because mathjax is unable to style individual math elements
    windowImpl.MathJax.Hub.Typeset( windowImpl.document )

# Search document for math and [data-math] elements and then typeset them
typesetDocument = (windowImpl) ->
  latexNodes = []
  for node in windowImpl.document.querySelectorAll(MATH_DATA_SELECTOR)
    formula = node.getAttribute('data-math')
    # divs should be rendered as a block, others inline
