MCPcopy Create free account
hub / github.com/ReactiveX/rxjs / markdownLinkTargets

Function markdownLinkTargets

scripts/check-package-docs.mjs:49–54  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

47}
48
49function markdownLinkTargets(source) {
50 return [...source.matchAll(/!?\[[^\]]*\]\(([^)]+)\)/g)]
51 .map((match) => match[1].trim())
52 .map((target) => (target.startsWith('<') && target.endsWith('>') ? target.slice(1, -1) : target))
53 .map((target) => target.split(/\s+["']/)[0]);
54}
55
56export async function checkPackageDocs(root = repositoryRoot) {
57 const documentPaths = [

Callers 1

auditPackageDocsFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected