Repository navigation
Description
Stage 1 — Reliable appearance and controls
Synopsis
Ordinary blockquote text can be unreadable on light backgrounds because the quote foreground is white. Use theme-appropriate foregrounds without changing the document.
End goal
Blockquote prose remains readable across every supported theme, including live theme changes, while existing quoted-code contrast fixes remain intact.
Start after
No prerequisite issue. This work can start independently from freshly fetched origin/main; stage numbering does not require waiting for every earlier milestone. Use the repository's dedicated feature-branch/worktree workflow and record the actual base revision.
Current evidence
Source inspection at the recorded baseline found white --blockquote-color values in light-theme definitions and ordinary blockquotes consuming that variable. A more specific Things rule is an exception. Export HTML already has a separate quote-color override. This is source-supported evidence, not a fresh installed-extension reproduction. The originally reported installed build, host versions, and machine details were not recorded; the implementing PR must record its own tested build and environment.
Source-inspected baseline: 19b276f3b819b9549e3a9e06d2dc967d8187ec06. Recheck the relevant code on the actual implementation base. No current runtime pass or implementation completion is claimed by this issue.
Agreed scope
- Cover both VS Code and Electron editor hosts.
- This issue owns ordinary quote readability, including nested inline formatting and links; preserve syntax-token and quoted-code colors.
- Use suitable theme values with ordinary-text contrast of at least 4.5:1 against the actual background. Do not solve the problem by forcing a different theme.
Acceptance criteria
- Ordinary and nested blockquote prose is readable in all supported light and dark themes, with measured foreground/background contrast.
- Switching themes updates quote colors without reload-dependent stale colors, document edits, or new undo entries.
- Inline code, fenced code, links, emphasis, and selections inside quotes remain readable and retain their independent styling.
- HTML/PDF quote output is checked separately; the existing export override is preserved unless an observed defect requires a scoped correction.
Verification
- Use a synthetic document with ordinary quotes, nested quotes, a link, emphasis, inline code, and labeled/unlabeled fenced code.
- Inspect computed production CSS and rendered screenshots across all themes; perform an installed-VSIX check and an Electron smoke check.
- Record what was source-tested, browser-tested, and observed in each running host; do not reuse historical results as a current pass.
Source pointers
src/webview/styles.csssrc/export/html.tstest/specs/codeblock-theme-contrast.spec.ts
Related work
Related: #4 is a closed issue about code inside blockquotes. This issue addresses the remaining ordinary-prose contrast behavior and must preserve that earlier code-color correction.
Delivery contract
Implement the shared editor behavior in both VS Code and Electron. View-only settings/actions must preserve Markdown, selection/editing context, clean state, and undo history. For new or changed settings, keep host wiring, manifest descriptions, all supported translations, and documentation consistent. Preserve existing identifiers and defaults except for the deliberate changes specified above.
Work from the repository root using the Node version in .node-version and the maintained instructions in CONTRIBUTING.md, docs/building.md, and docs/testing/README.md; export changes also follow docs/export-verification.md. Run full compilation after webview JavaScript/CSS, shared-module, or translation changes, plus checks that exercise the changed behavior. Rebuild and reinstall for installed-extension evidence. Report failures/skips honestly; follow required CI and review gates. Update affected documentation and review any committed Markdown in source and rendered form.
Link the PR or investigation to this issue. Keep remediation on the same focused work item where practical. Completion requires the stated evidence and accepted outcome; opening a draft PR does not complete the issue. No deadline or assignee is imposed by this issue.
Activity
Test #19 host snapshots with normalized Windows paths