Permalink
Browse files

Fixes bug that removes all highlight tags

  • Loading branch information...
1 parent b299a7b commit 8405d307647ff56bfccfc24997daa94eca06d644 @christianhellsten christianhellsten committed Apr 17, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/jekyll/tags/highlight.rb
View
5 lib/jekyll/tags/highlight.rb
@@ -23,10 +23,11 @@ def initialize(tag_name, markup, tokens)
def render(context)
if context.registers[:site].pygments
- render_pygments(context, super.to_s)
+ output = render_pygments(context, super.to_s)
else
- render_codehighlighter(context, super.to_s)
+ output = render_codehighlighter(context, super.to_s)
end
+ output
end
def render_pygments(context, code)

0 comments on commit 8405d30

Please sign in to comment.