MCPcopy Create free account
hub / github.com/Hashnode/starter-kit / constructor

Method constructor

packages/utils/renderer/headingSlugger.ts:7–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 headings: { [key: string]: number };
6
7 constructor() {
8 this.headings = {};
9 }
10
11 static sanitizeSlug(str: string): string {
12 return slug(sanitizeHtml(str, { allowedTags: [] }), { lower: true });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected