(link_reference_definition
  (link_label) @local.definition)

(footnote
  (reference_label) @local.definition)

(collapsed_reference_link
  (link_text) @local.reference)

(full_reference_link
  (link_label) @local.reference)

(full_reference_image
  (link_label) @local.reference)

(footnote_reference
  (reference_label) @local.reference)
