Skip to content

feat(write): Wonky Markdown flavor - #38

Merged
vlidholt merged 2 commits into
mainfrom
feat/wonky-markdown
Oct 27, 2026
Merged

vlidholt merged 2 commits into
mainfrom
feat/wonky-markdown

Conversation

@vlidholt

Copy link
Copy Markdown
Contributor

What

Wonky Markdown: Write's second Markdown flavor, matching the Serverpod blog's directives. Spec: specs/wonky_write/11-wonky-markdown.md.

  • Per document: set in File › Markdown flavor. GitHub Markdown stays the default, and publications can choose their flavor.
  • Elements:
    • Callouts, details and cards. These are containers and can be nested.
    • Grids.
    • Buttons, arrow links and chips.
    • Numbered headings.
    • YouTube videos (::youtube[Title]{id=… start=…}). The editor shows the thumbnail.
  • Editing:
    • Chrome on each element.
    • Insert and Format menus, toolbar and slash items.
    • Grid items are edited in place, like table cells.
    • At the end of a chip, button or arrow link, typing extends it and → moves the caret out.
  • Import and export: the directives round-trip. HTML, PDF and print render them. Other formats, and switching a document to GitHub Markdown, use fallbacks.
  • MCP and the AI assistant know the syntax.

Also in this PR

  • Offline cache: a copy restored from the cache is compared with the server once on connect. An op normalized differently by another server version could leave it silently out of sync.
  • super_editor patches: see third_party/super_editor/PATCHES.md.
    • SE-11: the caret is as tall as the text.
    • SE-12: the app can move the caret.
    • SE-13: a click splits a letter at its glyph's middle.
    • SE-14: content can opt out of the editor's gestures. Grid items and table cells use it; otherwise the editor also handled clicks in them.
  • Tables: in-place cell editing got the same click fixes as grid items: caret where clicked, double and triple click, no jump out of the table.
  • Editor: no caret is drawn while there is a selection.

Testing

  • wonky_write: 818 tests pass (-x slow).
  • super_editor: 5,639 tests pass.
  • wonky_write_core and the server: their suites passed earlier on this branch, before the latest editor-only fixes.
  • Checked by hand in the release build: the acceptance criteria in spec 11, plus the click, caret and selection fixes on chips, buttons, links, grids and tables.

🤖 Generated with Claude Code

vlidholt and others added 2 commits October 27, 2026 20:27
Adds Wonky Markdown, Write's second Markdown flavor matching the Serverpod
blog's directives (spec: specs/wonky_write/11-wonky-markdown.md). GitHub
Markdown stays the default; the flavor is a per-document setting that
publications can choose.

- Elements: callouts, details, cards (nestable containers), grids, buttons,
  arrow links, chips, numbered headings and YouTube videos (`::youtube`).
- Visual editing with chrome, menus, toolbar and slash items; in-place
  editing of grid items like table cells.
- Import/export of the directives; HTML, PDF and print render them, other
  formats and GitHub Markdown get fallbacks.
- MCP tools and the AI assistant know the syntax.
- Editing details: typing at the end of a chip or button extends it and
  → steps out; the caret and click targets match the pills; double and
  triple clicks in grid items and table cells; values set to what they
  are succeed without an edit; block chrome ⋯ menus without duplicates.
- Sync: a copy restored from the offline cache is checked against the
  server once on connect.
- super_editor patches SE-11 (caret height), SE-12 (caret adjustment),
  SE-13 (click split at the glyph middle) and SE-14 (content opting out of
  the editor's gestures), see third_party/super_editor/PATCHES.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vlidholt
vlidholt merged commit ed0d6a2 into main Oct 27, 2026
41 checks passed
@vlidholt
vlidholt deleted the feat/wonky-markdown branch October 27, 2026 20:46
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant