diff --git a/docs/_plugins/include_example.rb b/docs/_plugins/include_example.rb index 8a3af36e92..6b4b1c652a 100644 --- a/docs/_plugins/include_example.rb +++ b/docs/_plugins/include_example.rb @@ -54,9 +54,9 @@ module Jekyll puts(e.backtrace) exit 1 end - code = select_lines(code) + code = select_lines(code).strip - formatter = Rouge::Formatters::HTML.new + formatter = Rouge::Formatters::HTMLPygments.new(Rouge::Formatters::HTML.new) lexer = Rouge::Lexer.find(@lang) rendered_code = formatter.format(lexer.lex(code))