New patch to fix Markdown rendering (Closes: #895871).

This commit is contained in:
Dmitry Smirnov 2018-04-17 12:01:55 +10:00
parent 1c50ce0726
commit 42a8e904e2
2 changed files with 21 additions and 0 deletions

20
debian/patches/895871-markdown.patch vendored Normal file
View file

@ -0,0 +1,20 @@
Last-Update: 2018-04-17
Forwarded: [TODO]
Bug-Debian: https://bugs.debian.org/895871
Bug-Upstream: [TODO]
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

View file

@ -1,3 +1,4 @@
895871-markdown.patch
0050-relax-stable-libs.patch
0100-remove-development-test.patch
0108-make-mysql-optional.patch