Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/gfm/deps.ts>GitHubSlugger

Server-side GitHub Flavored Markdown rendering for Deno
Go to Latest
class GitHubSlugger
import { GitHubSlugger } from "https://deno.land/x/gfm@0.3.0/deps.ts";

Slugger.

Properties

occurrences: Record<string, number>

Methods

reset(): void

Reset - Forget all previous slugs

slug(value: string, maintainCase?: boolean | undefined): string

Generate a unique slug.

Tracks previously generated slugs: repeated calls with the same value will result in different slugs. Use the slug function to get same slugs.