memos/web/src
boojack 00225db922 refactor(web): share markdown element styles between viewer and editor
Extract the Tailwind classes for common markdown elements (paragraph,
blockquote, lists, inline code, link, hr, headings) into a single
markdownStyles.ts consumed by both the read-only MemoContent components
and the WYSIWYG editor, replacing the duplicated per-element strings and
the .memo-wysiwyg CSS block. Heading classes are precomputed per level so
the hot renderHTML path is a lookup, not a cn() merge.

Also require at least one character after `#` before opening the tag
suggestion menu so a bare `#` (or `# ` heading) no longer conflicts with
markdown headings.
2026-06-13 22:17:00 +08:00
..
components refactor(web): share markdown element styles between viewer and editor 2026-06-13 22:17:00 +08:00
contexts feat(settings): move tag metadata to user settings (#6017) 2026-06-07 23:58:00 +08:00
helpers feat: redesign account and SSO management (#5886) 2026-04-24 09:08:58 +08:00
hooks refactor(frontend): remove react-use dependency 2026-05-31 18:32:17 +08:00
layouts refactor(frontend): remove react-use dependency 2026-05-31 18:32:17 +08:00
lib refactor(web): share markdown element styles between viewer and editor 2026-06-13 22:17:00 +08:00
locales refactor(web): rename editor dirs and simplify raw mode to a plain textarea 2026-06-13 01:08:38 +08:00
pages fix(web): improve mobile control spacing 2026-06-09 21:04:47 +08:00
router feat(about): add about page with bird sprites 2026-05-14 20:30:37 +08:00
themes chore(theme): rebalance dark palette for readability 2026-05-02 09:11:46 +08:00
types feat: add optional webhook signing secret (Standard Webhooks HMAC-SHA256) (#6013) 2026-06-09 22:45:01 +08:00
utils feat(i18n): add searchable locale picker 2026-06-09 09:33:17 +08:00
App.tsx fix(web): persist auth token in localStorage for cross-tab sessions 2026-02-22 13:55:46 +08:00
auth-state.ts fix(auth): recover session via refresh cookie when localStorage is empty (#5748) 2026-03-20 19:21:11 +08:00
connect.ts fix(sse): stream initial response and refresh tokens 2026-05-09 09:15:50 +08:00
i18n.ts feat(i18n): expand European locale coverage 2026-06-09 09:07:28 +08:00
index.css refactor(web): share markdown element styles between viewer and editor 2026-06-13 22:17:00 +08:00
main.tsx perf: lazy load heavy first-screen dependencies (#5947) 2026-05-12 20:11:39 +08:00