Repository navigation
Conversation
Member
|
@Tux69140 I'm very sorry for replying so late. Over the past month, I've been mainly working on migrating the muya engine, so I prioritized bug fix PRs. The muya migration is now basically complete. Could you please fix the code conflicts first? So I can review this PR. |
3 of 6 tasks
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.
Closes #2452
Summary
Implements an optional traditional formatting toolbar for MarkText.
This PR adds a user preference to show or hide the toolbar, integrates the toolbar into the editor UI, and supports toolbar actions in both WYSIWYG and source mode. In source mode, link and image actions insert Markdown placeholders directly instead of opening dialogs.
A demo video is attached below.
Marktext-toolbar-20260530.mp4
Type of change
Test plan
Automated checks run locally:
pnpm run lintpnpm run typecheckpnpm run testpnpm -C packages/desktop buildenv -u ELECTRON_RUN_AS_NODE pnpm run test:e2eThe two skipped E2E tests are existing skipped tests in
paragraph-blocks.spec.ts:Paragraph block transforms › Horizontal ruleParagraph block transforms › Insert table dialog opens and accepts defaultThey were already marked as skipped in the test suite and were not skipped specifically for this PR.
Notes for reviewers [optional]
Source mode toolbar behavior is intentionally Markdown-oriented:
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.