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