Support itex2MML 1.3.12

master
Jacques Distler 2009-10-04 03:46:06 -05:00
parent 510e44a61a
commit 41274d64d0
3 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,7 @@
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}
<%- if @tex_content =~ /\\mathbb\{[^}]*[a-z0-9]+[^}]*\}/ -%>
\usepackage{mathbbol}
<% end -%>

View File

@ -930,6 +930,7 @@ class WikiControllerTest < ActionController::TestCase
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}
!
@tex_header2 = %q!\usepackage{graphicx}
\usepackage{color}

View File

@ -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'><mi>A</mi><mo>\342\211\224</mo><mi>B</} +
%{mi></math></p>},
"equation $A \\coloneqq B$")
assert_markup_parsed_as(
%{<p>equation <math class='maruku-mathml' displa} +