jqmath - 新行自动添加 before/after 数学函数

jqmath - new line added before/after the math function automatically

我正在尝试显示以下行:

<div id="theDiv">
Well, here is the function we have been talking of $$y = ln(e|^[| sin(|x|) |] |)$$ so thats the beauty.
</div>

由于这个div的内容是动态加载的,我申请 M.parseMath(theDiv);

它工作正常,但函数 $$y = ln(e|^[| sin(|x|) |] |)$$ 正在单独显示一行。

Well, here is the function we have been talking of 
$$y = ln(e|^[| sin(|x|) |] |)$$ (See this is on a line of its own!)
so thats the beauty.

为什么换行 - 如何避免?

在数学中使用 $ 而不是 $$。参见 http://mathscribe.com/author/jqmath.html

Dave 的意思是像这样使用 $ 包装器:

<div id="theDiv">
Well, here is the function we have been talking of $y = ln(e|^[| sin(|x|) |] |)$ so thats the beauty.
</div>