Last-Update: 2018-04-17 Forwarded: https://gitlab.com/gitlab-org/gitlab-ce/issues/45436 Bug-Upstream: https://gitlab.com/gitlab-org/gitlab-ce/issues/45436 Bug-Debian: https://bugs.debian.org/895871 Author: Dmitry Smirnov Description: fix markdown rendering. --- a/lib/banzai/renderer/redcarpet/html.rb +++ b/lib/banzai/renderer/redcarpet/html.rb @@ -5,9 +5,9 @@ def block_code(code, lang) lang_attr = lang ? %Q{ lang="#{lang}"} : '' "\n
" \
-            "#{html_escape(code)}" \
+            "#{ERB::Util.html_escape(code)}" \
           "
" end end end