feat(*): editor polish#58
Merged
winlp4ever merged 5 commits intomainfrom Apr 28, 2026
Merged
Conversation
- block-handle: drop nested mode so atom blocks (math, hr) get a handle and list-item bullets no longer collide with the floating button - code-block: cache the shiki highlighter and switch to a sync highlightCodeSync path; first-load fallback shows the editable layer while grammars stream in, eliminating the plain-to-colored flash - math-edit-popover: drop the inline preview, debounce live setNodeMarkup by 70ms, mark live updates as addToHistory:false so undo only sees the final commit
Three insertion paths share the canvas pipeline (downscale → upload): - /image slash command opens the file picker - drag-and-drop image files anywhere in the editor (refused inside code blocks) - paste images from the clipboard Persists the short server filePath as the image src instead of an inline base64 dataUrl so markdown stays under backend embedding limits. The ImageNodeView resolves filePath → dataUrl on render via GET /files, with an in-memory cache pre-warmed at insert time. Patches markdown-it's validateLink so file:// URLs round-trip through tiptap-markdown instead of falling back to plain text.
…ze observer Replace ResizeObserver-based content measurement with a pure-compute estimator that mirrors canvas-lite's tokenize/layout pipeline, so display-mode nodes (AI-generated, post-edit text) no longer clip when their persisted height is under what the content actually needs. Math blocks get a flat per-block allowance via the lite-markdown delimiters. Padding/scale math is unified in one helper used by Shape, the min-height hook, and the mindmap importer. Hook is gated to shape-with-markdown node types only — sheets, folders, sandboxes, widgets, images, icons, slides keep their own intrinsic sizing.
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.
No description provided.