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

Function getMarkdownBaseUri

src/pages/markdownPreview/renderer.js:59–66  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

57}
58
59export function getMarkdownBaseUri(file) {
60 if (!file) return "";
61 if (file.uri) return file.uri;
62 if (file.location && file.filename) {
63 return Url.join(file.location, file.filename);
64 }
65 return file.location || "";
66}
67
68export function resolveMarkdownTarget(target = "", baseUri = "") {
69 if (!target || target.startsWith("#") || isExternalLink(target)) {

Callers 3

resolveRenderedImagesFunction · 0.90
onContentClickFunction · 0.90
renderMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected