MCPcopy Create free account
hub / github.com/arktypeio/arktype / unmarkNote

Function unmarkNote

ark/repo/jsdocGen.ts:456–462  ·  view source on GitHub ↗
(note: ParsedJsDocPart[])

Source from the content-addressed store, hash-verified

454 * a ⚠️ note is labeled as a warning, and other markers are dropped.
455 */
456const unmarkNote = (note: ParsedJsDocPart[]) => {
457 const start = note[0]
458 if (start?.kind !== "noteStart") return
459 const marker = noteMarkerRegex.exec(start.value)?.[0] ?? ""
460 start.value = start.value.slice(marker.length)
461 if (marker.startsWith("⚠️")) start.warning = true
462}
463
464/**
465 * A reference to a name documented on the same page stays an in-page anchor.

Callers 1

parseBlockFunction · 0.85

Calls 1

execMethod · 0.80

Tested by

no test coverage detected