Skip to main content
Latest
class Slugger._Slugger
import { Slugger } from "https://deno.land/x/frugal@0.9.6/doc/dep/marked.ts";
const { _Slugger } = Slugger;

Slugger generates header id

Constructors

new
_Slugger()

Properties

seen: { [slugValue: string]: number; }

Methods

getNextSafeSlug(originalSlug: string, isDryRun: boolean | undefined): string

Finds the next safe (unique) slug to use

serialize(value: string): string
slug(value: string, options?: SluggerOptions): string

Convert string to unique id