summaryrefslogtreecommitdiff
path: root/app/helpers/gitlab_markdown_helper.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-01 18:16:56 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-09-01 18:16:56 -0400
commit5794d65a0743343bfaa367d10d7b0aaa82e20a25 (patch)
treed258c4fda15f9c40ff70b8fc713169eccfe62846 /app/helpers/gitlab_markdown_helper.rb
parentca8d225307280750597150b0b969998f99aad4a5 (diff)
downloadgitlab-ce-5794d65a0743343bfaa367d10d7b0aaa82e20a25.tar.gz
Add post_process method to Gitlab::Markdown
Diffstat (limited to 'app/helpers/gitlab_markdown_helper.rb')
-rw-r--r--app/helpers/gitlab_markdown_helper.rb6
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)