diff options
author | Brett Walker <bwalker@gitlab.com> | 2018-09-19 22:58:43 +0300 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2018-09-29 19:29:32 +0300 |
commit | 829c9c65f9b730b3ecad7d3ba222e3dcd6489b85 (patch) | |
tree | 2a9ce8bd65b2bc8291b7c5e63f746c39034ae288 /app/models/project_services | |
parent | e5d3a75aac4f0bb287699b21f3a56b8bfe499665 (diff) |
post_process markdown redered by API
Diffstat (limited to 'app/models/project_services')
-rw-r--r-- | app/models/project_services/hipchat_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/hipchat_service.rb b/app/models/project_services/hipchat_service.rb index 66012f0da99..a69b7b4c4b6 100644 --- a/app/models/project_services/hipchat_service.rb +++ b/app/models/project_services/hipchat_service.rb @@ -149,7 +149,7 @@ class HipchatService < Service context.merge!(options) - html = Banzai.post_process(Banzai.render(text, context), context) + html = Banzai.render_and_post_process(text, context) sanitized_html = sanitize(html, tags: HIPCHAT_ALLOWED_TAGS, attributes: %w[href title alt]) sanitized_html.truncate(200, separator: ' ', omission: '...') |