MarkdownEditor
MarkdownEditor opens in a resizable source-and-visual split view. The
Markdown string remains the single persistence source while TipTap provides
the visual editing surface.
Properties
Content contract
The controlled source history coalesces typing, keeps explicit commands as separate records, restores source selection on undo and redo, and rebases when the host replaces the value.
Selection menu
The host menu covers both source and visual selections. The snapshot identifies
selection.surface and includes exact selected text, adjacent context, the
complete Markdown source, rendered plain text, and safe replace/insert
commands.
Extensions that introduce new Nodes or Marks must provide matching Markdown parse and serialization rules. Otherwise the structure cannot survive a source-view round trip.