lib/asciidoctor/iso/ref.rb in asciidoctor-iso-0.9.6 vs lib/asciidoctor/iso/ref.rb in asciidoctor-iso-0.9.7
- old
+ new
@@ -80,10 +80,10 @@
end
def fetch_ref(xml, code, year, **opts)
hit = @bibdb&.fetch(code, year, opts)
return nil if hit.nil?
- xml.parent.add_child(hit)
+ xml.parent.add_child(hit.to_xml)
xml
rescue Algolia::AlgoliaProtocolError
nil # Render reference without an Internet connection.
end