(path: string | null | undefined)
| 74 | |
| 75 | /** True for an Obsidian Excalidraw drawing by filename (`*.excalidraw.md`). */ |
| 76 | export 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. |
no outgoing calls
no test coverage detected