Added missing Ace sandbox in Ace::PygmentsFilter.
This commit is contained in:
parent
9f128f8fed
commit
e3941ba8e5
1 changed files with 12 additions and 10 deletions
|
@ -4,7 +4,8 @@ require "ace/filters"
|
||||||
require "nokogiri"
|
require "nokogiri"
|
||||||
require "albino"
|
require "albino"
|
||||||
|
|
||||||
class PygmentsFilter < Filter
|
module Ace
|
||||||
|
class PygmentsFilter < Filter
|
||||||
def call(item, content)
|
def call(item, content)
|
||||||
puts 'PygmentsFilter ************************'
|
puts 'PygmentsFilter ************************'
|
||||||
doc = Nokogiri::HTML(content)
|
doc = Nokogiri::HTML(content)
|
||||||
|
@ -16,4 +17,5 @@ class PygmentsFilter < Filter
|
||||||
end
|
end
|
||||||
doc
|
doc
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue