Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki
This commit is contained in:
commit
f4f9261431
|
@ -20,8 +20,6 @@ class Itex
|
||||||
case @params['display']
|
case @params['display']
|
||||||
when 'block'
|
when 'block'
|
||||||
filter = :block_filter
|
filter = :block_filter
|
||||||
when 'inline'
|
|
||||||
filter = :inline_filter
|
|
||||||
else
|
else
|
||||||
filter = :inline_filter
|
filter = :inline_filter
|
||||||
end
|
end
|
||||||
|
@ -31,8 +29,8 @@ class Itex
|
||||||
eend = "</mtext></merror></math>"
|
eend = "</mtext></merror></math>"
|
||||||
begin
|
begin
|
||||||
require 'itextomml'
|
require 'itextomml'
|
||||||
itex2mml_parser = Itex2MML::Parser.new
|
@itex2mml_parser ||= Itex2MML::Parser.new
|
||||||
itex2mml_parser.send(filter, tex).to_utf8
|
@itex2mml_parser.send(filter, tex).to_utf8
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
estart + "Please install the itex2MML Ruby bindings." + eend
|
estart + "Please install the itex2MML Ruby bindings." + eend
|
||||||
rescue Itex2MML::Error => e
|
rescue Itex2MML::Error => e
|
||||||
|
|
Loading…
Reference in a new issue