Skip to content

feat(*): editor polish#58

Merged
winlp4ever merged 5 commits intomainfrom
feat/editor-polish
Apr 28, 2026
Merged

feat(*): editor polish#58
winlp4ever merged 5 commits intomainfrom
feat/editor-polish

Conversation

@winlp4ever
Copy link
Copy Markdown
Contributor

No description provided.

- 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.
@winlp4ever winlp4ever merged commit 7b39e00 into main Apr 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant