cben/CodeMirror-MathJax

Display math — separate centered line

Closed this issue · 1 comments

cben commented

Currently display math is typeset right (looser spacing, limits on top/bottom), but is shown where it was written.
Should be on separate line, and centered (or at least indented).

cben commented

Good news: whole CM requires a widget to be an inline element, the widget can span lines—specifically <br> elements inside the widget work!
This requires nested spans, because display math wants to think it's a block:

<span style="display: inline"> <br> <span style="display: inline-block">$...$</span> <br> </span>