Rich text / foldkit-richtext-dom/view

renderEditable

function · packages/richtext-dom/src/view.ts:234

function renderEditable(
  document: RichText.Document,
  renderer?: RichText.Rendering,
  decorations?: RichText.DecorationSet,
): Html

The editable subtree mount builds, as Html, for a server to send in the editor's host so the browser's editor adopts it rather than drawing it again (§145). adopt takes it over only when it is exactly what mount would build, so it has to be rendered with the same registry and decorations the editor will mount with.