Fix blockquote

This commit is contained in:
KMY 2023-03-04 16:19:08 +09:00
parent 245309d679
commit 5f477d21d1

View file

@ -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,