CodeMirror 6 inline Markdown image widgets - #8
Merged
Conversation
Add session-gated /api/upload that posts to a Cloudflare Worker bound to chasehuh-media, insert  at the caret, and show a preview strip under the editor. Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the bottom media bar so image upload stays a power-user gesture (clipboard paste or drop into the editor). Co-authored-by: Cursor <cursoragent@cursor.com>
Render  images below the note text inside the buffer scrollport, without restoring the media toolbar chrome. Co-authored-by: Cursor <cursoragent@cursor.com>
Support  and drag the preview corner handle to rewrite the markdown width in the note body. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the note textarea with CodeMirror 6 and render  as block widgets under the source line. Keep paste/drop upload, Obsidian |width resize, and Zed-like editor behaviors; Markdown remains the single source of truth. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Jul 14, 2026
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
<textarea>with CodeMirror 6 (Zed-like theme tokens, wrap toggle, Tab→spaces, scroll-beyond, line numbers,->→→).as block widgets under the source line; remove the document-bottom image gallery./api/upload→ Markdown at caret; resize handle rewrites Obsidian|width(double-click clears width). Markdown string remains the single source of truth for save/sync/DB.Closes #7
Test plan
pnpm install && pnpm devwithMEDIA_UPLOAD_*set; reload preserves width|width→, scroll-beyond still work.zed-image-previewsgallery is goneMade with Cursor