Skip Navigation
Type MethodMethod

markup(for:additionalClass:)

Builds the icon of a topic type, wrapped like swift-docc-render’s TopicTypeIcon.

static func markup(
    for type: String,
    additionalClass: String = ""
) -> String

Parameters

type

A type name; it is normalised with normalisedType(_:).

additionalClass

Further classes of the wrapper, such as navigator-icon.

Return Value

A <span> with the class className holding the SVG icon.