Skip Navigation
Type MethodMethod

headingRules(anchors:)

Returns the style element that makes the section headings of a page the subjects of the items’ view timelines.

static func headingRules(anchors: [String]) -> String

Parameters

anchors

The anchors of the items, in order.

Return Value

A <style> element for the document head, or an empty string if the page lists no sections besides its title.

Discussion

The first item links to the top of the page and needs no timeline.