Created
July 2, 2012 16:00
-
-
Save marcoceppi/3033963 to your computer and use it in GitHub Desktop.
Readme, wiki, and others choke when using code blocks.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/lib/redcarpet/render/gitlab_html.rb | |
+++ b/lib/redcarpet/render/gitlab_html.rb | |
@@ -3,7 +3,7 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML | |
if Pygments::Lexer.find(language) | |
Pygments.highlight(code, :lexer => language, :options => {:encoding => 'utf-8'}) | |
else | |
- Pygments.highlight(code, :options => {:encoding => 'utf-8'}) | |
+ Pygments.highlight(code, :lexer => 'bash', :options => {:encoding => 'utf-8'}) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This helped me out of a bind. Thank you so much!