memos/web/src/lib
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
..
calendar-utils.ts chore: add ActivityCalendar components 2025-12-28 19:59:36 +08:00
color.ts refactor(web): improve Settings page maintainability and consistency (#5757) 2026-03-21 15:05:48 +08:00
error.ts refactor: remove MemoContentContext and integrate MemoViewContext 2025-12-28 12:46:12 +08:00
markdownStyles.ts refactor(web): share markdown element styles between viewer and editor 2026-06-13 22:17:00 +08:00
query-client.ts fix(web): fix spurious logout on page reload with expired access token 2026-02-23 14:08:59 +08:00
tag.ts feat(settings): move tag metadata to user settings (#6017) 2026-06-07 23:58:00 +08:00
utils.ts chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00