MacDownApp / MacDownApp/macdown

Applying formatting across lines

Open
#1,008 0 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

Right now MacDown will apply formatting across line breaks, even though the renderer doesn't apply it that way. For example, in the following text, highlight from two to three and apply bold formatting:

```
two

three
```

Result:

```
**two

three**
```

So no text is bolded at all. (Same thing happens if you format multiple list items at once.

Desired result is:

```
**two**

**three**
```

where both items are bolded.

I think if MacDown watches for line breaks and applies the formatting tags to each line separately, that should work. For list items, you'd want to exclude the list markers, of course.

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

Reproduce the multiline and multi-list-item formatting examples in MacDown, comparing the current output with the desired per-line formatting. Trace the formatting action from the selected text and verify that line breaks and list markers are handled correctly. Done means each selected line renders with its own formatting tags without wrapping across line breaks.

Written by the indexing model from the issue text.

Assessment

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