MacDownApp / MacDownApp/macdown

Underscore in links not shown

Open
#1,265 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hy there. I have a link that is not properly displayed in Macdown:

Expected: ble_simple_peripheral.py
Actual: blesimpleperipheral.py

Screenshot 2021-09-03 at 11 21 27

This is my code but the underscores aren't shown in the Preview pane.

Start with [ble_simple_peripheral.py](https://github.com/xyz.py)
Screenshot 2021-09-03 at 11 23 48
Update

The problem occurs with all rendering themes. However, when changing the theme I could see that simple was actually underlined. So it seems that somehow the underscores are part of the link.

Screenshot 2021-09-03 at 11 30 14

So I now understand what happened. The underscores got changed into an underline-formatting. I guess this can be seen as expected behaviour.

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 source file or test is named in the issue. Reproduce the Markdown example in MacDown's Preview pane, then trace the rendering path for underscore handling; done means the link text preserves the underscores without unintended emphasis, or the behavior is documented as expected.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.