SlugGenerator Class

Definition

Generates GitHub-style kebab-case anchor IDs from heading text. Tracks duplicates and appends -1, -2, etc. until the ID is unused, as GitHub does.

public sealed class SlugGenerator

Remarks

TODO: expose ISlugGenerator interface and allow injection via AvaloniaRenderer to support alternative anchor schemes (e.g. GitLab, Gitea, or user-defined).

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Properties (1)

Methods (3)