       .replace /&/g, '&amp;'
       .replace /</g, '&lt;'
       .replace />/g, '&gt;'
-      "<SPAN CLASS='katex-error' TITLE='#{title}'>#{latex}</SPAN>"
+      """<SPAN CLASS="katex-error" TITLE="#{title}">#{latex}</SPAN>"""
   if math?
     text.replace /MATH(\d+)ENDMATH/g, (match, p1) ->
       replacer math[p1]

  .replace /\\u\s*{a}/g, '&#259;'
  .replace /\\v\s*{a}/g, '&#462;'
  .replace /\\H\s*{o}/g, '&#337;'
  .replace /\\&/g, '&amp;'
  .replace /\\([{}])/g, '$1'
  .replace /~/g, '&nbsp;'

  .replace /\\end\s*{(problem|theorem|conjecture|lemma|corollary)}/g, '</blockquote>'
  .replace /\\begin\s*{(proof|pf)}/g, '<b>Proof:</b> '
  .replace /\\end\s*{(proof|pf)}/g, ' $\\Box$'
  .replace /\\"{(.)}/g, '&$1uml;'
  .replace /\\"(.)/g, '&$1uml;'
  .replace /\\'{(.)}/g, '&$1acute;'
