Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki

master
Jacques Distler 2011-07-07 10:32:49 -05:00
commit 8d7f33f99b
4 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,6 @@
source "http://rubygems.org"
gem "sqlite3-ruby", :require => "sqlite3"
gem "itextomml", ">=1.4.5"
gem "itextomml", ">=1.4.6"
gem "rack", ">=1.1.0"
gem "mongrel", ">=1.2.0.pre2"
gem "rubyzip"

View File

@ -155,6 +155,8 @@
%% Fix array
\newcommand{\itexarray}[1]{\begin{matrix}#1\end{matrix}}
%% \itexnum is a noop
\newcommand{\itexnum}[1]{#1}
%% Renaming existing commands
\newcommand{\underoverset}[3]{\underset{#1}{\overset{#2}{#3}}}

View File

@ -1201,6 +1201,8 @@ class WikiControllerTest < ActionController::TestCase
%% Fix array
\newcommand{\itexarray}[1]{\begin{matrix}#1\end{matrix}}
%% \itexnum is a noop
\newcommand{\itexnum}[1]{#1}
%% Renaming existing commands
\newcommand{\underoverset}[3]{\underset{#1}{\overset{#2}{#3}}}

View File

@ -269,6 +269,16 @@ END_THM
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'><mrow href='http://ex.com' xlink:href=} +
%{'http://ex.com' xlink:type='simple' xmlns:xlin} +
%{k='http://www.w3.org/1999/xlink'><mn>47.3</mn>} +
%{</mrow><mn>47</mn><mo>,</mo><mn>3</mn><mn>47,3} +
%{</mn></math></p>},
"equation $\\href{http://ex.com}{47.3} 47,3 \\itexnum{47,3}$")
assert_markup_parsed_as(
%{<p>equation <math class='maruku-mathml' displa} +
%{y='inline' xmlns='http://www.w3.org/1998/Math/} +