MacDownApp / MacDownApp/macdown

Separate theme coloring for link text and url

Open
#1,035 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

It seems that there is no way to separately style the text and url of markdown links with MacDown. I'd love to give the link itself a separate color from the text, in other words have `[blue](light-blue)` kind of styling. But it seems we only have `LINK` available in the theme.

Could you add a `LINK_URL` option to color the url separately? If the `LINK_URL` color is missing, just use the `LINK` color, but if it is present in the theme, then use it for the url portion of the link.

This would make it much easier to read documents with lots of links. What most people really need to do is read either the primary text (proofreading for meaning) or the urls (proofreading for function), but those are two very different tasks. It would be very helpful to use color to distinguish those portions of the document.

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

No files or tests are named in the issue. Start by locating the theme-rendering code that handles LINK colors, then trace how link text and URLs are styled; done means a LINK_URL theme option colors the URL separately and falls back to LINK when it is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, objective-c
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.