edemaine / coauthor

Coauthor supercollaboration/discussion forum
MIT License
249 stars 34 forks source link

Math mode in comments #535

Closed diomidov closed 3 years ago

diomidov commented 3 years ago

What's wrong?

If a comment ends in $...$-->, nothing after it is rendered. The issue is that postprocessKaTeX inserts a <span class="nobr"> around math mode and punctuation directly after it. In this case, punctuation is --. So you get

<!--
  <span class="nobr">
    <span class="katex">...</span>
    --
  </span>
>

How to Reproduce

https://coauthor.csail.mit.edu/coauthor-dev/m/P2FDbcoSJFALqhdPw

Screenshots

image

Context

edemaine commented 3 years ago

Should be fixed at the same time as #465.