disable markdown images
This commit is contained in:
parent
ec7389d9a0
commit
0752ebf1f3
|
@ -4,7 +4,7 @@ class Markdowner
|
||||||
return ""
|
return ""
|
||||||
else
|
else
|
||||||
html = RDiscount.new(text.to_s, :smart, :autolink, :safelink,
|
html = RDiscount.new(text.to_s, :smart, :autolink, :safelink,
|
||||||
:filter_styles, :filter_html).to_html
|
:filter_styles, :filter_html, :no_image).to_html
|
||||||
|
|
||||||
# change <h1> headings to just emphasis tags
|
# change <h1> headings to just emphasis tags
|
||||||
html.gsub!(/<(\/)?h(\d)>/) {|_| "<#{$1}strong>" }
|
html.gsub!(/<(\/)?h(\d)>/) {|_| "<#{$1}strong>" }
|
||||||
|
|
Loading…
Reference in a new issue