2018-04-17 07:31:55 +05:30
|
|
|
Last-Update: 2018-04-17
|
2018-04-17 07:51:56 +05:30
|
|
|
Forwarded: https://gitlab.com/gitlab-org/gitlab-ce/issues/45436
|
|
|
|
Bug-Upstream: https://gitlab.com/gitlab-org/gitlab-ce/issues/45436
|
2018-04-17 07:31:55 +05:30
|
|
|
Bug-Debian: https://bugs.debian.org/895871
|
|
|
|
Author: Dmitry Smirnov <onlyjob@debian.org>
|
|
|
|
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<pre>" \
|
|
|
|
- "<code#{lang_attr}>#{html_escape(code)}</code>" \
|
|
|
|
+ "<code#{lang_attr}>#{ERB::Util.html_escape(code)}</code>" \
|
|
|
|
"</pre>"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|