Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the old one-liner form, and migrate lib/ext/examples/tests/docs accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
1015 B
1015 B
title, description, import
| title | description | import | ||
|---|---|---|---|---|
| web-collab-doc | Two-browser collaborative plain-text editor over WS room (LWW snapshot sync) |
|
main
Collaborative notepad: open the page in two browsers; edits fan out via
/live/{room} WebSocket (mode=room + presence). Build WASM first:
marqdo wasm build -o examples/web-collab-doc/static
embed = > web.client_embed bridge="/static/marqdo-bridge.js" wasm="/static/marqdo_wasm.wasm" source="/static/client.mq.md" boot=True
intro = "
Room demo · open twice to co-edit.
presence: —
" + embedpage = > web.page title="Collab doc" intro=intro layout="bare"
app = > web.app page=page host="127.0.0.1" port=18094
app = > app.static dir="static" mount="/static"
app = > app.route_ws path="/live/{id}" mode="room" room_key="doc.{id}" presence=True
app.listen