Cleanup
Got rid of redcloth_for_tex. Fixed almost all the busted tests.
This commit is contained in:
parent
2da672ec5b
commit
3ca33e52b5
15 changed files with 321 additions and 1317 deletions
|
@ -1,4 +1,5 @@
|
|||
require 'cgi'
|
||||
require 'html5lib/filters'
|
||||
|
||||
module HTML5lib
|
||||
|
||||
|
@ -175,10 +176,10 @@ module HTML5lib
|
|||
end
|
||||
end
|
||||
|
||||
class HTMLSanitizeFilter < Filter
|
||||
class HTMLSanitizeFilter < Filters::Base
|
||||
include HTMLSanitizeModule
|
||||
def each
|
||||
@source.each do |token|
|
||||
__getobj__.each do |token|
|
||||
yield(sanitize_token(token))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue