MCPcopy
hub / github.com/jsdoc/jsdoc / hashToLink

Function hashToLink

templates/default/publish.js:37–48  ·  view source on GitHub ↗
(doclet, hash)

Source from the content-addressed store, hash-verified

35}
36
37function hashToLink(doclet, hash) {
38 let url;
39
40 if ( !/^(#.+)/.test(hash) ) {
41 return hash;
42 }
43
44 url = helper.createLink(doclet);
45 url = url.replace(/(#.+|$)/, hash);
46
47 return `<a href="${url}">${hash}</a>`;
48}
49
50function needsSignature({kind, type, meta}) {
51 let needsSig = false;

Callers 1

publish.jsFile · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…