MacDownApp / MacDownApp/macdown

Dollar signs cause syntax coloring to fail

Open
#1,359 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

First, thank you for picking up and modernizing my favorite Markdown editor!

Interesting things happen to the the syntax coloring when you use dollar signs. Try the following:

```
[^6]: Raspberry Pi 5 is ~$45-95 (1GB vs. 8GB), PSU is ~$15, case is $25, USB hub is $10, 64GB card is $20.

Notice how this text is now grayed out (or whatever the theme renders it as)
```
I have had to resort to always writing dollar signs as `$` in the meantime to get around this since unless the dollar signs are in pairs, it will do this — but this is clearly not optimal 😄

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the Markdown footnote example containing unmatched dollar signs, then trace the syntax-coloring or Markdown-rendering entry point used by the macOS editor. No file or test is named in the issue; done means dollar signs in ordinary text no longer cause the surrounding text to become incorrectly grayed out.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
desktop
Issue type
Bug
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.