Skip to main content

parse_hashpipe_labels

Function parse_hashpipe_labels 

Source
pub fn parse_hashpipe_labels(body: &str) -> Vec<ChunkLabel>
Expand description

Scan the body of a fenced code block for hashpipe label options (#| label: setup).

Only the contiguous run of hashpipe lines at the top of the block is inspected, matching Quarto’s own behaviour: chunk options must appear before any code.