Conversation
…ebar Resizable vertical-tab sidebar with Arc-style collapse
Default export filename to the source document's name
Add a copy button to code blocks in the Markdown preview
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
This release adds two quality-of-life features — a copy button on preview code blocks and a drag-resizable vertical tab sidebar — and makes HTML/PDF exports default to the source
document's filename. It also bumps the version to 1.0.1 with the corresponding What's New entries and changelog.
Changes
delegation so the listener survives
dangerouslySetInnerHTMLswaps, and shows a transient check-mark feedback. Added theclipboard-manager:allow-write-textcapability andlocalized tooltips in all 14 languages.
interface.tabSidebarWidthsetting with debounced writes, and dragging below the collapse threshold unpins the sidebar back to auto-hide.deriveExportFileNameutility (markdown extension swapped for the target one); unsaved documents keep the legacy
markdown-exportfallback. (Use the source document name as the default export filename #442)whatsNew.ts, thewhatsNew.changesentries in all 14 locales, andCHANGELOG.md. Aligned "vertical tab"terminology with the settings screen across locales (e.g. ja 垂直タブ, ko 수직 탭, zh-CN 垂直标签页).
Tests
previewHtmlProcessing.test.ts/Preview.test.tsx: new tests for copy-button injection into rendered code blocks and the copy interaction (clipboard call, feedback state).pathUtils.test.ts: new tests forderiveExportFileName(markdown extension swap, non-markdown extensions, unsaved fallback).useSettings.test.ts/AppContent.test.tsx: new tests fortabSidebarWidthpersistence, clamping, and the sidebar drag/unpin behavior.desktopApi.test.ts: coverage for thedefaultNameparameter of the HTML save dialog.