lib/codehighlighter-middleware.rb in wbzyl-codehighlighter-middleware-0.1.0 vs lib/codehighlighter-middleware.rb in wbzyl-codehighlighter-middleware-0.1.1
- old
+ new
@@ -122,10 +122,10 @@
lang = 'text'
refs = @opts[:pattern].match(string) # extract language name
if refs
lang = refs[1]
str = unescape_html(string.sub(@opts[:pattern], ""))
- "<pre class='#{opts[:theme]}'>#{::Uv.parse(str, 'xhtml', lang, opts[:lines], opts[:theme])}</pre>"
+ "#{::Uv.parse(str, 'xhtml', lang, opts[:lines], opts[:theme])}"
else
"<pre class='#{opts[:theme]}'>#{string}</pre>"
end
end