2018-03-14 15:23:58 +05:30
|
|
|
Last-Update: 2018-03-14
|
|
|
|
Forwarded: not-needed
|
|
|
|
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890757
|
|
|
|
Author: Dmitry Smirnov <onlyjob@debian.org>
|
|
|
|
Description: fix markdown rendering.
|
|
|
|
|
|
|
|
Thanks, Libor Klepáč.
|
|
|
|
|
|
|
|
--- a/lib/banzai/filter/markdown_filter.rb
|
|
|
|
+++ b/lib/banzai/filter/markdown_filter.rb
|
2018-03-18 12:27:51 +05:30
|
|
|
@@ -26,7 +26,7 @@
|
2018-03-14 15:23:58 +05:30
|
|
|
|
|
|
|
def self.renderer
|
2018-03-18 12:27:51 +05:30
|
|
|
Thread.current[:banzai_markdown_renderer] ||= begin
|
2018-03-14 15:23:58 +05:30
|
|
|
- renderer = Banzai::Renderer::HTML.new
|
2018-03-18 12:27:51 +05:30
|
|
|
+ renderer = Redcarpet::Renderer::HTML.new
|
|
|
|
Redcarpet::Markdown.new(renderer, REDCARPET_OPTIONS)
|
2018-03-14 15:23:58 +05:30
|
|
|
end
|
|
|
|
end
|