marktext / marktext/marktext

Colored text button support

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

Nobody has claimed this yet.

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

Description

Describe your feature request

As far as I know, Markdown does not support text color directly, but it can be done with inline HTML.

I test this method in Marktext under source code mode and Marktext can correctly display it.

And I think it would be great to add a button to changed color of selected string in Typewritter Mode.

What problem does this feature solve? [optional]

Make Marktext to support colored text easily, it would be useful for note-taking.

Additional context [optional]

Test makrdown snippet (under source code mode)

- <span style="color:blue">Blue text</span>
- <span style="color:red">Red text</span>
- <span style="color:yellow">Yellow text</span>
- <span style="color:green">Green text</span>

And after switching back to typewritter mode
marktext-color-text

And it would be great to support in the menu Format > Color.

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 tracing the Typewriter Mode formatting controls and the Format menu, then compare how selected text is represented in source code mode. Define the supported color behavior for selected strings, including the inline HTML form shown in the issue, and verify that colored text remains correct when switching between modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.