fix(service): math-display not wrapped in p
This a tiny change to the math-fixing routine behind the useMath
flag. Basically, what we were getting back from XSweet when there was a display equation was this:
<p><math-display>[equation]</math-display></p>
The problem with this is when it hits Wax, which sees math-display
as a block-level element that can't go inside a p
so it's thrown away, and what comes out is this:
<p>[equation]</p>
The LaTeX of the equation is correct, and if you type a "$$ " before it, it turns into a display equation. But this fix modifies what's coming out of XSweet to this:
<math-display>[equation]</math-display>
which goes into Wax without any trouble.