You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add theme toggle button (sun/moon) in md viewer embedded toolbar,
visible in both edit and reader modes
- Theme persisted via PreferencesManager preference (mdViewerTheme)
- Communication: iframe sends mdviewrThemeToggle → MarkdownSync persists
and sends MDVIEWR_SET_THEME back to apply
- Content max-width changed to 90ch for paper-like readability
- Responsive padding: 70px on wider viewports, 24px on narrow
- Collapse all toolbar format groups below 590px panel width
- Update CLAUDE.md and CLAUDE-markdown-viewer.md to document md viewer's
own i18n system (src-mdviewer/src/locales/en.json)
Copy file name to clipboardExpand all lines: CLAUDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
- For parameterized strings use `StringUtils.format(Strings.KEY, arg0, arg1)` with `{0}`, `{1}` placeholders.
21
21
- Keys use UPPER_SNAKE_CASE grouped by feature prefix (e.g. `AI_CHAT_*`).
22
22
- Only `src/nls/root/strings.js` (English) needs manual edits — other locales are auto-translated by GitHub Actions.
23
+
-**Exception — Markdown viewer iframe** (`src-mdviewer/`): Has its own i18n system. Strings go in `src-mdviewer/src/locales/en.json` (root), not `src/nls/`. Other locale files in that folder are auto-translated by GitHub Actions. Use `t("key")` / `tp("key", { param })` from `src-mdviewer/src/core/i18n.js`.
23
24
- Never compare `$(el).text()` against English strings for logic — use data attributes or CSS classes instead.
0 commit comments