RuneStone 1.0.0

This commit is contained in:
Knotty Wyvern
2026-11-16 04:21:21 -07:00
commit b52eeb14a1
827 changed files with 241421 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import { isImagePath, workspaceImageLink } from "../workspace/media.ts";
export function workspaceFileLink(notePath: string, filePath: string): string {
const image = workspaceImageLink(notePath, filePath);
if (isImagePath(filePath)) return image;
const label = (filePath.replaceAll("\\", "/").split("/").pop() || filePath).replace(/[\\[\]]/g, "\\$&");
return `[${label}]${image.slice(3)}`;
}