AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
style(demo): default cat image size to small (35%) in demo seed notes
tianma-if1c9705fcd93c
diff --git a/apps/api/src/index.ts b/apps/api/src/index.tsindex d49f34e4..7b70044f 100644--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@ -5353,6 +5353,19 @@ const ensureDemoSeed = async (}const contentJson = markdownToDoc(memo.markdown);+ const applyDemoImageWidths = (nodes: any[]) => {+ for (const node of nodes) {+ if (node.type === "image") {+ node.attrs = { ...node.attrs, width: 35 };+ }+ if (Array.isArray(node.content)) {+ applyDemoImageWidths(node.content);+ }+ }+ };+ if (Array.isArray(contentJson.content)) {+ applyDemoImageWidths(contentJson.content);+ }const contentText = docToText(contentJson);const contentHash = await sha256(memo.markdown + JSON.stringify(contentJson));