mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
DEV: Upgrade to Rails 7
This patch upgrades Rails to version 7.0.2.4.
This commit is contained in:
parent
532f9cdb1a
commit
008b700a3f
99 changed files with 724 additions and 691 deletions
|
@ -59,13 +59,13 @@ class HtmlToMarkdown
|
|||
before, after = parent.children.slice_when { |n| n == br }.to_a
|
||||
|
||||
if before.size > 1
|
||||
b = Nokogiri::XML::Node.new(parent.name, doc)
|
||||
b = Nokogiri::XML::Node.new(parent.name, doc.document)
|
||||
before[0...-1].each { |c| b.add_child(c) }
|
||||
parent.previous = b if b.inner_html.present?
|
||||
end
|
||||
|
||||
if after.present?
|
||||
a = Nokogiri::XML::Node.new(parent.name, doc)
|
||||
a = Nokogiri::XML::Node.new(parent.name, doc.document)
|
||||
after.each { |c| a.add_child(c) }
|
||||
parent.next = a if a.inner_html.present?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue