Type MethodMethodheader
headerAnchor(anchor:title:)
Builds the link that makes a heading an anchor (swift-docc-render’s Linkable).
static func headerAnchor(
anchor: String,
title: String
) -> StringParameters
anchorThe identifier of the heading.
titleThe heading text, already escaped for HTML.
Return Value
The a element.
Discussion
The link icon after the title appears while the heading is hovered or focused.