// Test labels. --- // Test labelled headings. #show heading: text.with(10pt) #show heading.where(label: "intro"): underline = Introduction The beginning. = Conclusion The end. --- // Test label after expression. #show strong.where(label: "v"): text.with(red) #let a = [*A*] #let b = [*B*] #a #b --- // Test labelled text. #show "t": it => { set text(blue) if it.label == "last" it } This is a thing [that ] happened. --- // Test abusing labels for styling. #show strong.where(label: "red"): text.with(red) #show strong.where(label: "blue"): text.with(blue) *A* *B* *C* *D* --- // Test that label ignores parbreak. #show emph.where(label: "hide"): none _Hidden_ _Hidden_ _Visible_ --- // Test that label only works within one content block. #show strong.where(label: "strike"): strike *This is* [] *protected.* *This is not.*