MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / isObsidianExcalidrawPath

Function isObsidianExcalidrawPath

packages/shared-domain/src/excalidraw.ts:76–78  ·  view source on GitHub ↗
(path: string | null | undefined)

Source from the content-addressed store, hash-verified

74
75/** True for an Obsidian Excalidraw drawing by filename (`*.excalidraw.md`). */
76export function isObsidianExcalidrawPath(path: string | null | undefined): boolean {
77 return typeof path === 'string' && path.toLowerCase().endsWith(OBSIDIAN_EXCALIDRAW_SUFFIX)
78}
79
80/**
81 * True if the markdown carries Obsidian's `excalidraw-plugin` frontmatter marker.

Callers 3

excalidraw.test.tsFile · 0.90
EditorPaneFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected