MCPcopy Index your code
hub / github.com/modelcontextprotocol/modelcontextprotocol / getAnchor

Method getAnchor

typedoc.plugin.mjs:47–57  ·  view source on GitHub ↗

* @param {typedoc.RouterTarget} target * @returns {string}

(target)

Source from the content-addressed store, hash-verified

45 * @returns {string}
46 */
47 getAnchor(target) {
48 if (target instanceof typedoc.DeclarationReflection &&
49 target.kindOf(typedoc.ReflectionKind.Property) &&
50 !hasComment(target)
51 ) {
52 return "";
53 } else {
54 // Must use `toLowerCase()` because Mintlify generates lower case IDs for Markdown headings.
55 return super.getFullUrl(target).replace(".html", "").replaceAll(/[./#]/g, "-").toLowerCase();
56 }
57 }
58}
59
60/**

Callers 1

getFullUrlMethod · 0.95

Calls 2

hasCommentFunction · 0.85
getFullUrlMethod · 0.80

Tested by

no test coverage detected