Skip to content

feat(preview): unify reading width and add outline#102

Merged
mattenarle10 merged 5 commits into
mainfrom
fix/pr100-outline
Jul 10, 2026
Merged

feat(preview): unify reading width and add outline#102
mattenarle10 merged 5 commits into
mainfrom
fix/pr100-outline

Conversation

@mattenarle10

Copy link
Copy Markdown
Owner

summary

  • preserve the contributor implementation and authorship from feat(preview): unified reading width + outline (TOC) panel #100
  • apply the reading-width setting consistently to split preview and reading mode
  • add a persisted reading-mode outline with heading navigation
  • expose the outline command only while reading
  • overlay the outline below 760px so narrow windows keep readable prose width
  • add focused command visibility and label tests

checks

  • bun test (28 pass)
  • bun run build
  • cargo check --manifest-path src-tauri/Cargo.toml
  • git diff --check

Replaces #100 because the contributor organization rejects maintainer branch updates despite maintainer edits being enabled.

beihai23 and others added 5 commits July 10, 2026 23:15
Two reading-mode enhancements:

1. Unify preview width into the reading-width control
   - Remove the standalone "fill width" toggle; its behavior (fill
     viewport + 100% tables + tighter padding) moves into the "full"
     step of the existing reading-width slider.
   - Split preview now follows reading-width too — .mdv-prose uses the
     --mdv-reading-prose-width variable instead of a hardcoded 720px.
   - One width control (narrow / comfort / wide / full), effective in
     both split and reading modes, persisted.

2. Add a docked table-of-contents (outline) panel for reading mode
   - Toggle from the reading-mode title bar or the command palette.
   - Reads the rendered headings (each already carries a GitHub-style
     slug id from the markdown renderer) and scrolls to the chosen
     heading on click. State persisted.

Co-Authored-By: Claude <[email protected]>
@mattenarle10 mattenarle10 merged commit 285fdb9 into main Jul 10, 2026
2 checks passed
@mattenarle10 mattenarle10 deleted the fix/pr100-outline branch July 10, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants