Tweak from Ari Stern
Match Maruku Revision 184: change wrapper for embedded TeX in display equation from a <div> to a <span>.
This commit is contained in:
parent
0fdb13b257
commit
e48b000c11
2 changed files with 18 additions and 19 deletions
|
@ -80,8 +80,8 @@ class PageRendererTest < Test::Unit::TestCase
|
|||
%{<div class='maruku-equation'><math class='maruku-mathml' display='block' } +
|
||||
%{xmlns='http://www.w3.org/1998/Math/MathML'><mi>sin</mi><mo stretchy='false'>} +
|
||||
%{(</mo><mi>x</mi><mo stretchy='false'>)</mo><semantics><annotation-xml encoding='SVG1.1'>} +
|
||||
%{<svg/></annotation-xml></semantics></math><div class='maruku-eq-tex'><code style='display: none;'>} +
|
||||
%{\\sin(x) \\begin{svg}<svg/>\\end{svg}</code></div></div>},
|
||||
%{<svg/></annotation-xml></semantics></math><span class='maruku-eq-tex'><code style='display: none;'>} +
|
||||
%{\\sin(x) \\begin{svg}<svg/>\\end{svg}</code></span></div>},
|
||||
"$$\\sin(x) \\begin{svg}<svg/>\\end{svg}$$")
|
||||
|
||||
code_block = [
|
||||
|
@ -115,7 +115,7 @@ class PageRendererTest < Test::Unit::TestCase
|
|||
%{<p>ecuasi\303\263n</p>\n<div class='maruku-equation'><math class='maruku-mathml' } +
|
||||
%{display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>sin</mi>} +
|
||||
%{<mo stretchy='false'>(</mo><mi>x</mi><mo stretchy='false'>)</mo></math>} +
|
||||
%{<div class='maruku-eq-tex'><code style='display: none;'>\\sin(x)</code></div></div>},
|
||||
%{<span class='maruku-eq-tex'><code style='display: none;'>\\sin(x)</code></span></div>},
|
||||
"ecuasi\303\263n\n$$\\sin(x)$$")
|
||||
|
||||
assert_markup_parsed_as(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue