MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / getHeadingSlugSource

Function getHeadingSlugSource

server/utils/readme.ts:213–215  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

211}
212
213function getHeadingSlugSource(text: string): string {
214 return stripHtmlTags(text).trim()
215}
216
217/**
218 * Lazy ATX heading extension for marked: allows headings without a space after `#`.

Callers 1

renderReadmeHtmlFunction · 0.85

Calls 1

stripHtmlTagsFunction · 0.90

Tested by

no test coverage detected