memos/web
boojack c349c1549e fix(editor): make formatting commands toggle and convert correctly
Bold (and italic/code) now remove an empty just-inserted delimiter pair instead of nesting more asterisks, and strip real marks whichever way the selection was made; clicking Link inside a link unwraps it instead of inserting [](); the three list modes convert between each other (bullet on a task line no longer leaves '[ ] ...' behind), toggle off any ordered number, respect indentation, and apply across multi-line selections; list/heading edits keep the cursor in place (task insert on an empty line lands after the marker).

Structurally, highlight and toggle now share one line-mode detector so they cannot disagree; the heading regex is shared with headingDecorations, so indented headings render styled; one MARKS table drives all inline-mark behavior; run("link") is total (URL doubles as label on empty selection, now inserted inline rather than as its own block); the unused getSelectedText contract method and the dead markdown-list-detection.ts util are removed.

Known divergence, not addressed here: markdown-task-actions.ts TASK_LINE_REGEXP accepts ordered task items ('1. [ ]') which the editor's TASK_LINE does not; the viewer toggles such checkboxes but the editor toolbar won't detect them.
2026-07-02 20:41:46 +08:00
..
docs refactor(react-query): optimize config, add error boundary, and remove JSDoc 2025-12-25 08:47:36 +08:00
public enhance: polish PWA manifest and meta tags (#5695) 2026-03-07 14:02:13 +08:00
src fix(editor): make formatting commands toggle and convert correctly 2026-07-02 20:41:46 +08:00
tests refactor: rebuild the editor on CodeMirror as decorated source 2026-06-28 22:59:14 +08:00
.gitignore chore: update gitignore 2025-04-17 23:11:36 +08:00
biome.json refactor: remove MemoContentContext and integrate MemoViewContext 2025-12-28 12:46:12 +08:00
components.json feat: themes (#4824) 2025-07-07 20:13:22 +08:00
index.html enhance: polish PWA manifest and meta tags (#5695) 2026-03-07 14:02:13 +08:00
package.json refactor: rebuild the editor on CodeMirror as decorated source 2026-06-28 22:59:14 +08:00
pnpm-lock.yaml refactor: rebuild the editor on CodeMirror as decorated source 2026-06-28 22:59:14 +08:00
pnpm-workspace.yaml chore: upgrade pnpm to 11 (#5911) 2026-04-28 22:16:22 +08:00
tsconfig.json chore: upgrade TypeScript to 6.0.2 2026-03-24 08:45:56 +08:00
vite.config.mts perf: lazy load heavy first-screen dependencies (#5947) 2026-05-12 20:11:39 +08:00
vitest.config.mts refactor(web/routing): guard-based auth flow, migrate tests to Vitest (#5848) 2026-04-18 01:06:54 +08:00