diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-09-02 01:16:56 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-09-02 01:16:56 +0300 |
commit | 5794d65a0743343bfaa367d10d7b0aaa82e20a25 (patch) | |
tree | d258c4fda15f9c40ff70b8fc713169eccfe62846 /app/helpers/gitlab_markdown_helper.rb | |
parent | ca8d225307280750597150b0b969998f99aad4a5 (diff) |
Add post_process method to Gitlab::Markdown
Diffstat (limited to 'app/helpers/gitlab_markdown_helper.rb')
-rw-r--r-- | app/helpers/gitlab_markdown_helper.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/gitlab_markdown_helper.rb b/app/helpers/gitlab_markdown_helper.rb index 9890ec7c757..f2cab2840d4 100644 --- a/app/helpers/gitlab_markdown_helper.rb +++ b/app/helpers/gitlab_markdown_helper.rb @@ -52,7 +52,8 @@ module GitlabMarkdownHelper ref: @ref ) - Gitlab::Markdown.render(text, context) + html = Gitlab::Markdown.render(text, context) + Gitlab::Markdown.post_process(html, current_user) end # TODO (rspeicher): Remove all usages of this helper and just call `markdown` @@ -65,7 +66,8 @@ module GitlabMarkdownHelper ref: @ref ) - Gitlab::Markdown.gfm(text, options) + html = Gitlab::Markdown.gfm(text, options) + Gitlab::Markdown.post_process(html, current_user) end def asciidoc(text) |