pub fn labels_of(node: &NodeRef<'_, Flm>) -> (Vec<LabelUse>, Vec<Rejected>)Expand description
Reads the optional argument LABELS_ARG of the xnote node node: the
\label{…} commands written there, in order, and every other thing
written there that is not whitespace or a comment.
The labels are read by the references feature’s own reader,
refs::label_uses_in, so a \label here is read exactly as one written
after a heading; refs::point_labels splits them into what a reference
point declares. The labels count regardless of what else the argument
holds: \footnote[\textbf{x}\label{fn:e}]{…} is labeled fn:e, and its
\textbf{x} is rejected.
A \label counts only where the references feature declares it, in its
scoped package refs::LABEL_PACKAGE: in a registry without that
feature, a \label in the argument is an unknown command and is rejected
like any other. For a node with no such argument, or with the argument not
written, the function returns two empty lists.