Pathname Objects
Web#files_path and Web#blatex_pngs_path now return Pathname objects.
Based on JHerdman's
5d1e8f420b
but requires several other changes to the code (which assumed a string).
Also, test for itex2MML 1.3.10 (you should update that too).
This commit is contained in:
parent
c05d69bcff
commit
336e57d6b4
4 changed files with 17 additions and 13 deletions
|
@ -211,6 +211,13 @@ END_THM
|
|||
end
|
||||
|
||||
def test_have_latest_itex2mml
|
||||
assert_markup_parsed_as(
|
||||
%{<p>equation <math class='maruku-mathml' displa} +
|
||||
%{y='inline' xmlns='http://www.w3.org/1998/Math/} +
|
||||
%{MathML'><munder><mi>A</mi><mo>\314\262</mo></m} +
|
||||
%{under></math></p>},
|
||||
"equation $\\underline{A}$")
|
||||
|
||||
assert_markup_parsed_as(
|
||||
%{<p>equation <math class='maruku-mathml' } +
|
||||
%{display='inline' xmlns='http://www.w3.org/1998/Math/MathML'>} +
|
||||
|
@ -220,13 +227,13 @@ END_THM
|
|||
assert_markup_parsed_as(
|
||||
%{<p>blackboard digits: <math class='maruku-mathml' display='} +
|
||||
%{inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>math} +
|
||||
%{bb</mi><mn>123 </mn></math></p>},
|
||||
%{bb</mi><mn>123</mn></math></p>},
|
||||
"blackboard digits: $\mathbb{123}$")
|
||||
|
||||
assert_markup_parsed_as(
|
||||
%{<p>\\rlap: <math class='maruku-mathml' display='} +
|
||||
%{inline' xmlns='http://www.w3.org/1998/Math/MathML'><mpadded} +
|
||||
%{ width='0'><mn>123 </mn></mpadded></math></p>},
|
||||
%{ width='0'><mn>123</mn></mpadded></math></p>},
|
||||
'\rlap: $\rlap{123}$')
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue