headingid

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalText

func CanonicalText(value string) string

CanonicalText applies the shared lowercase NFC + whitespace-collapsing contract used by heading ids and fragment lookup.

func Normalize

func Normalize(value string) string

Normalize returns the shared fragment/id slug form derived from visible heading text.

func NormalizeWhitespace

func NormalizeWhitespace(value string) string

NormalizeWhitespace collapses internal whitespace runs to single spaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL