diff --git a/memento-note/app/api/notes/daily/route.ts b/memento-note/app/api/notes/daily/route.ts index 9cd3d4c..4589e4a 100644 --- a/memento-note/app/api/notes/daily/route.ts +++ b/memento-note/app/api/notes/daily/route.ts @@ -15,13 +15,8 @@ function getTodayContent(dateStr: string): string { day: 'numeric', } const formatted = d.toLocaleDateString('fr-FR', options) - return JSON.stringify({ - type: 'doc', - content: [ - { type: 'heading', attrs: { level: 1 }, content: [{ type: 'text', text: `📅 ${formatted}` }] }, - { type: 'paragraph', content: [{ type: 'text', text: '' }] }, - ], - }) + // Store as HTML (same format as richtext notes via editor.getHTML()) + return `