Skip to content
Browse files

no longer angering the gods of nokogiri

  • Loading branch information...
1 parent 3cad536 commit e05edc0aa43029bd50db581af6133ac2c41fed4e @nakajima committed Dec 16, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/syntaxily.rb
  2. +1 −1 spec/syntaxily_spec.rb
View
2 lib/syntaxily.rb
@@ -16,7 +16,7 @@ def self.parse(text)
lexer = node['rel']
begin
lexed = node.text.syntaxify(lexer)
- node.replace Nokogiri::HTML.parse(lexed)
+ node.replace Nokogiri::HTML.parse(lexed).at('body *')
rescue LexerNotFound
next
end
View
2 spec/syntaxily_spec.rb
@@ -66,4 +66,4 @@ def render
}.should_not raise_error
end
end
-end
+end

0 comments on commit e05edc0

Please sign in to comment.
Something went wrong with that request. Please try again.