Skip to content

refactor(renderer)!: remove the renderMarkdown prop - #89

Merged
LeslieOA merged 1 commit into
developfrom
refactor/remove-render-markdown
Oct 4, 2026
Merged

LeslieOA merged 1 commit into
developfrom
refactor/remove-render-markdown

Conversation

@LeslieOA

@LeslieOA LeslieOA commented Oct 4, 2026

Copy link
Copy Markdown
Member

Summary

Removes CanvasView's renderMarkdown prop and the matching field on the canvas context.

Nothing has read it since March 2026. It was added so a host could inject its own markdown component for text nodes; within a day text moved to Skia, because the injected native view rendered empty in the transformed canvas layer and, on macOS, native text stops drawing about 1500px from its parent's origin. #27 marked the prop deprecated.

Breaking

  • CanvasView no longer accepts renderMarkdown.
  • The value from useCanvasContext() no longer has renderMarkdown.

A caller that still passes the prop fails typecheck. Delete the prop: it had no effect. Workspace's desktop and mobile apps, the only callers, stop passing it in workspace-sh/workspace#644, which lands first.

Not lost

The goal behind the prop, text nodes that draw markdown as well as a document does, is #88. A prop that returns a React element can't serve it: a native view can't be drawn into a Skia canvas.

Verification

  • npm run typecheck: clean
  • npm run lint: 0 errors
  • npm test: 192 pass
  • No renderMarkdown left in src/

src/gtk never had the prop.

Refs: #26, #88

🤖 Generated with Claude Code

CanvasView accepted renderMarkdown and put it in the canvas context, and
nothing read it: text nodes have drawn through Skia since March, because a
native markdown view rendered empty in the transformed canvas layer and,
on macOS, native text stops drawing about 1500px from its parent's origin.
#27 marked it deprecated. Its only callers, Workspace's desktop and mobile
apps, stopped passing it in workspace-sh/workspace#644.

BREAKING CHANGE: CanvasView no longer has a renderMarkdown prop, and the
value from useCanvasContext no longer has a renderMarkdown field. A caller
that still passes the prop fails typecheck; delete the prop, it had no
effect.

The goal the prop was for, text nodes that match a markdown document, is
#88.

Refs: #26, #88

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LeslieOA
LeslieOA merged commit 68d222f into develop Oct 4, 2026
1 check passed
@LeslieOA
LeslieOA deleted the refactor/remove-render-markdown branch October 4, 2026 21:43
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