lib/reverse_markdown.rb in reverse_markdown-1.0.2 vs lib/reverse_markdown.rb in reverse_markdown-1.0.3
- old
+ new
@@ -39,13 +39,13 @@
when Nokogiri::XML::Node then input
end
root or return ''
- result = config.with(options) do
- ReverseMarkdown::Converters.lookup(root.name).convert(root)
+ config.with(options) do
+ result = ReverseMarkdown::Converters.lookup(root.name).convert(root)
+ cleaner.tidy(result)
end
- cleaner.tidy(result)
end
def self.config
@config ||= Config.new
yield @config if block_given?