MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / isExternalLink

Function isExternalLink

src/pages/markdownPreview/renderer.js:51–53  ·  view source on GitHub ↗
(target = "")

Source from the content-addressed store, hash-verified

49}
50
51export function isExternalLink(target = "") {
52 return EXTERNAL_LINK_PATTERN.test(String(target).trim());
53}
54
55export function isMarkdownPath(target = "") {
56 return /\.md(?:[#?].*)?$/i.test(String(target).trim());

Callers 6

resolveRenderedImagesFunction · 0.90
onContentClickFunction · 0.90
resolveMarkdownTargetFunction · 0.85
resolveImageTargetFunction · 0.85
createMarkdownItFunction · 0.85
renderMarkdownFunction · 0.85

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected