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
TODO: expose ISlugGenerator interface and allow injection via AvaloniaRenderer to support alternative anchor schemes (e.g. GitLab, Gitea, or user-defined).
kind:method, kind:property, kind:ctor. Press Esc to clear.CountThe number of slugs generated since the last Reset(), less those TruncateTo(Int32) dropped.GenerateSlug(String)Generates the slug for a heading, appending -1, -2, ... when it is already in use, until it is not: headings "A", "A" and "A-1" get a, a-1 and a-1-1.Reset()Forgets every slug generated so far.TruncateTo(Int32)Forgets every slug generated after the first count, so the next GenerateSlug(String) returns what it would have if only those had been generated.