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
|
||||
|
||||
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 = html.delete("\n")
|
||||
|
@ -164,8 +166,7 @@ class TextFormatter
|
|||
# not need filter_html because escape is already done
|
||||
@htmlobj ||= MyMarkdownHTML.new(
|
||||
filter_html: false,
|
||||
hard_wrap: true,
|
||||
no_styles: true
|
||||
hard_wrap: true
|
||||
)
|
||||
@markdown ||= Redcarpet::Markdown.new(@htmlobj,
|
||||
autolink: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue