Fix Maruku Math Bug
Reported by Andrew Stacey.
This commit is contained in:
parent
cd674bbb36
commit
f914a40fa9
|
@ -208,6 +208,12 @@ END_THM
|
||||||
%{<mi>sin</mi><mo stretchy='false'>(</mo><mi>x</mi><mo stretchy='false'>)</mo></math></p>},
|
%{<mi>sin</mi><mo stretchy='false'>(</mo><mi>x</mi><mo stretchy='false'>)</mo></math></p>},
|
||||||
"ecuasi\303\263n $\\sin(x)$")
|
"ecuasi\303\263n $\\sin(x)$")
|
||||||
|
|
||||||
|
assert_markup_parsed_as(
|
||||||
|
%{<div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://w} +
|
||||||
|
%{ww.w3.org/1998/Math/MathML'><mo>⋅</mo><mi>p</mi></math><span class='maruku-eq-tex'><code} +
|
||||||
|
%{ style='display: none;'>\\cdot\np</code></span></div>},
|
||||||
|
"$$\\cdot\np$$")
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_ial_in_lists
|
def test_ial_in_lists
|
||||||
|
|
|
@ -58,6 +58,8 @@ MaRuKu::In::Markdown.register_block_extension(
|
||||||
end
|
end
|
||||||
|
|
||||||
opening, tex = first.scan(EquationStart).first
|
opening, tex = first.scan(EquationStart).first
|
||||||
|
# ensure newline at end of first line of equation isn't swallowed
|
||||||
|
tex << "\n"
|
||||||
numerate = doc.get_setting(:math_numbered).include?(opening)
|
numerate = doc.get_setting(:math_numbered).include?(opening)
|
||||||
label = nil
|
label = nil
|
||||||
loop do
|
loop do
|
||||||
|
|
Loading…
Reference in a new issue