Update vendored Sqlite3-ruby to 1.3.0
Also, some tweaks to Maruku.
This commit is contained in:
parent
9a80cacc34
commit
4f8759cdf3
55 changed files with 3071 additions and 8028 deletions
|
@ -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
|
||||
|
|
|
@ -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( /&/, "&" ).
|
||||
gsub( /</, "<" ).gsub( />/, ">" ).
|
||||
gsub(/'/, "'" ).gsub(/"/, """ )}</code>"
|
||||
return Document.new(mathml).root
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue