lib/metanorma/standoc/inline.rb in metanorma-standoc-2.1.0 vs lib/metanorma/standoc/inline.rb in metanorma-standoc-2.1.1
- old
+ new
@@ -77,10 +77,11 @@
end
end.join
end
def inline_anchor_bibref(node)
- eref_contents = (node.text || node.target || node.id)
+ eref_contents = HTMLEntities.new
+ .decode(node.text || node.target || node.id)
&.sub(/^\[?([^\[\]]+?)\]?$/, "[\\1]")
@refids << (node.target || node.id)
noko do |xml|
xml.ref **attr_code(id: node.target || node.id) do |r|
r << eref_contents