Fix blockquote
This commit is contained in:
parent
245309d679
commit
5f477d21d1
1 changed files with 4 additions and 3 deletions
|
@ -43,7 +43,9 @@ class TextFormatter
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
html = markdownify(html)
|
# line first letter for blockquote
|
||||||
|
p 'DEBUG ' + html.gsub(/^gt;/, '>')
|
||||||
|
html = markdownify(html.gsub(/^>/, '>'))
|
||||||
|
|
||||||
# html = simple_format(html, {}, sanitize: false).delete("\n") if multiline?
|
# html = simple_format(html, {}, sanitize: false).delete("\n") if multiline?
|
||||||
html = html.delete("\n")
|
html = html.delete("\n")
|
||||||
|
@ -164,8 +166,7 @@ class TextFormatter
|
||||||
# not need filter_html because escape is already done
|
# not need filter_html because escape is already done
|
||||||
@htmlobj ||= MyMarkdownHTML.new(
|
@htmlobj ||= MyMarkdownHTML.new(
|
||||||
filter_html: false,
|
filter_html: false,
|
||||||
hard_wrap: true,
|
hard_wrap: true
|
||||||
no_styles: true
|
|
||||||
)
|
)
|
||||||
@markdown ||= Redcarpet::Markdown.new(@htmlobj,
|
@markdown ||= Redcarpet::Markdown.new(@htmlobj,
|
||||||
autolink: false,
|
autolink: false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue