lib/asciidoctor/standoc/cleanup_xref.rb
# extending localities to cover ISO referencing
extending localities to cover ISO referencing
extending localities to cover ISO referencing
def xref_to_internal_eref(elem)
        a = elem["target"].split(":", 3)
        unless a.size < 2 || a[0].empty? || a[1].empty?
          elem["target"] = "#{a[0]}_#{a[1]}"
          a.size > 2 and
            elem.children = %{anchor="#{a[2..-1].join}",#{elem&.children&.text}}
          elem["type"] = a[0]
          @internal_eref_namespaces << a[0]
          elem.name = "eref"
          xref_to_eref(elem)
        end
      end
def xref_to_internal_eref ( elem ) a = elem [ "target" ] . split ( ":" , 3 ) unless a . size < 2 || a [ 0 ] . empty? || a [ 1 ] . empty? elem [ "target" ] = "#{a[0]}_#{a[1]}" a . size > 2 and elem . children = %{anchor="#{a[2..-1].join}",#{elem&.children&.text}} elem [ "type" ] = a [ 0 ] @internal_eref_namespaces << a [ 0 ] elem . name = "eref" xref_to_eref ( elem ) end end
extending localities to cover ISO referencing
extending localities to cover ISO referencing
elem