feat(preview): unify reading width and add outline#102
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
summary
checks
bun test(28 pass)bun run buildcargo check --manifest-path src-tauri/Cargo.tomlgit diff --checkReplaces #100 because the contributor organization rejects maintainer branch updates despite maintainer edits being enabled.