Math description details bug

If you put a  tag inside of a   tag, the MathJax wrapper will be a   with the class   instead of a   with. This adds whitespace above and below the expression, and makes it display as a block instead of inline&mdash;potentially ruining layout.

The bug goes not occur with any other tags; only  is affected. It also does not occur if you use the wikitext equivalent, but that isn't always convenient, e.g. in a Lua module. As a temporary fix, you can wrap the  tag in a   tag, but:


 * 1) It isn't semantic
 * 2) It requires additional code

Wikitext (correct)

 * term 1
 * $$y = mx + b$$


 * term 2
 * $$y = mx + b$$

HTML (incorrect)
term 1$$y = mx + b$$term 2$$y = mx + b$$

HTML with temporary fix (correct)
term 1 $$y = mx + b$$ term 2</dt> $$y = mx + b$$ </dd></dl>