Skip to main content

split_footnote_refs_at

Function split_footnote_refs_at 

Source
pub fn split_footnote_refs_at(
    notes: &[FootnoteRefAnchor],
    byte_offset: u32,
) -> (Vec<FootnoteRefAnchor>, Vec<FootnoteRefAnchor>)
Expand description

Split block image anchors at byte_offset. Anchors at exactly byte_offset go to the right half (rebased to offset 0). Split footnote references at byte_offset, rebasing the right-hand side to zero — the exact rule split_images_at applies, because a reference occupies a block the same way an image does.