MacDownApp / MacDownApp/macdown
Applying formatting across lines
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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