marktext / marktext/marktext

Add action to double-clicked word properly. (bold, italic, etc.)

Open
#2,544 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:unicorn: feature request 🔭 area/editor
Dominant language
TypeScript
Stars
61.6k
Forks
4.6k
Avg merge
23h 49m
Merged PRs (30d)
89

Description

Hello, I have switched to Mark Text from Typora lately and I really like it! There is one thing maybe you could improve.

Describe your feature request

When I double-click a word and add for example "bold" it affects the whole selection (a word + white space after the word). I know it does what it is supposed to do, but Typora trims that white space and it is useful.

Additional context

IMAGE

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the double-click selection and applying bold or italic formatting in the editor. Confirm how the selection includes trailing whitespace, then verify that formatting a double-clicked word excludes that whitespace while preserving normal formatting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, markdown, typescript
Domain
desktop-dev, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.