Live markdown editor for note body - #88
Merged
Merged
Conversation
Turn the note editor into dedicated title, URL, and tags fields arranged to read as one document, replacing the in-text title/url/tags line syntax. This prepares the editor for a live markdown body (spec 003) without any API or storage changes, and migrates existing localStorage drafts to the new field-based shape. The markdown toolbar spec (002) is superseded and removed. 💘 Generated with Crush Assisted-by: Crush:kimi-k3
Swap the plain textarea for a Milkdown editor so markdown renders inline as the user types, while content is still stored and sent as plain markdown. Removes the separate Preview Markdown step, adds a character counter near the 50k limit with client-side save blocking, and themes the editor for both light and dark modes. 💘 Generated with Crush Assisted-by: Crush:kimi-k3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Second step of spec
ai/specs/003-live-markdown-editor.md(stacked on #87). Replaces the note body textarea with a Notion-style live markdown editor; content is still stored and sent as plain markdown, so the API, existing notes, and shared-note links are untouched.MarkdownEditorcomponent (client/src/components/MarkdownEditor/index.tsx) built on Milkdown with CommonMark + GFM presets: headers, lists, task lists, bold, italic, code, blockquotes, tables, links, and strikethrough render inline as you type; paste converts rich content and markdown textModalMarkdownstays for the Home note view and SharedNote page#,**bold**, and lists, and that the saved payload is plain markdownNotes
💘 Generated with Crush