Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-08-02 04:29:15 +0400
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-08-02 04:54:05 +0400
commit24ec186a8390080a14843c146320d1a33260789e (patch)
treede964b663d81edb417206da7ce5a02ec4ef44003 /lib
parent6873d07f62f51686f71ac7d31a06ae2124062235 (diff)
Update Gitlab Markdown renderer to use GFM
Diffstat (limited to 'lib')
-rw-r--r--lib/redcarpet/render/gitlab_html.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redcarpet/render/gitlab_html.rb b/lib/redcarpet/render/gitlab_html.rb
index 6530adf012f..33403dedbd8 100644
--- a/lib/redcarpet/render/gitlab_html.rb
+++ b/lib/redcarpet/render/gitlab_html.rb
@@ -16,4 +16,8 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML
Pygments.highlight(code, :options => {:encoding => 'utf-8'})
end
end
+
+ def postprocess(full_document)
+ h.gfm(full_document)
+ end
end