Switch to Redcarpet for Markdown Rendering.
This gives us Github Flavored Markdown, which is awesome.
This commit is contained in:
parent
9ee345750c
commit
c437e2d7d4
7 changed files with 30 additions and 13 deletions
9
lib/redcarpet/render/gitlab_html.rb
Normal file
9
lib/redcarpet/render/gitlab_html.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML
|
||||
def block_code(code, language)
|
||||
if Pygments::Lexer.find(language)
|
||||
Pygments.highlight(code, :lexer => language)
|
||||
else
|
||||
Pygments.highlight(code)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue