Update vendored Sqlite3-ruby to 1.3.0

Also, some tweaks to Maruku.
This commit is contained in:
Jacques Distler 2010-06-10 22:42:33 -05:00
parent 9a80cacc34
commit 4f8759cdf3
55 changed files with 3071 additions and 8028 deletions

View file

@ -11,9 +11,9 @@ module MaRuKu
return nil
end
begin
require 'itex_stringsupport'
rescue LoadError
require 'instiki_stringsupport'
rescue LoadError
require 'itex_stringsupport'
end
parser = Itex2MML::Parser.new

View file

@ -6,13 +6,9 @@ module MaRuKu; module Out; module HTML
# or return an empty array on error
# return []
# or have a string parsed by REXML:
begin
require 'itex_stringsupport'
rescue LoadError
require 'instiki_stringsupport'
end
tex = tex.escapeHTML
mathml = "<code>#{tex}</code>"
mathml = "<code>#{tex.gsub( /&/, "&amp;" ).
gsub( /</, "&lt;" ).gsub( />/, "&gt;" ).
gsub(/'/, "&#39;" ).gsub(/"/, "&quot;" )}</code>"
return Document.new(mathml).root
end