lib/review/htmlutils.rb in review-1.1.0 vs lib/review/htmlutils.rb in review-1.2.0
- old
+ new
@@ -35,9 +35,11 @@
def highlight(ops)
body = ops[:body] || ''
lexer = ops[:lexer] || ''
format = ops[:format] || ''
+ return body if ReVIEW.book.param["pygments"].nil?
+
begin
require 'pygments'
begin
Pygments.highlight(
unescape_html(body),