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

Function isMarkdownPath

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

Source from the content-addressed store, hash-verified

53}
54
55export function isMarkdownPath(target = "") {
56 return /\.md(?:[#?].*)?$/i.test(String(target).trim());
57}
58
59export function getMarkdownBaseUri(file) {
60 if (!file) return "";

Callers 1

onContentClickFunction · 0.90

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected