MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / getRememberedSourcePath

Function getRememberedSourcePath

src/code_embed.ts:323–325  ·  view source on GitHub ↗
(embedEl: HTMLElement)

Source from the content-addressed store, hash-verified

321}
322
323function getRememberedSourcePath(embedEl: HTMLElement): string {
324 return embedEl.closest<HTMLElement>(`[${CODE_SPACE_SOURCE_PATH_ATTR}]`)?.getAttribute(CODE_SPACE_SOURCE_PATH_ATTR) ?? "";
325}
326
327function normalizeSourcePathCandidate(rawValue: string, plugin: CodeSpacePlugin): string {
328 const normalized = normalizePath(rawValue.replace(/\\/g, "/").trim());

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected