MacDownApp / MacDownApp/macdown

Redundant blank lines following specific formatting

Open
#936 1 comment 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

**1. The third level of a nested list**

```markdown
* Thing A
* Thing A-a
* A-a-1
* A-a-2
* A-a-3
* Thing B
* Thing C
```

What I expect is:

* Thing A
* Thing A-a
* A-a-1
* A-a-2
* A-a-3
* Thing B
* Thing C

However I see this instead:

* Thing A
* Thing A-a
* A-a-1
* A-a-2
* A-a-3

* Thing B
* Thing C

**2. Embedded hyperlinks in lists**

```markdown
1. [Link](https://github.com/)
* A
* B
```

Should be:

1. [Link](https://github.com/)
* A
* B

But I see:

1. [Link](https://github.com/)

* A
* B

When I remove the hyperlink, it becomes normal:

1. [Link]
* A
* B

These phenomenons cannot be reproduced neither in other markdown editors nor on GitHub. Hence I suspect that it could be a bug which needs fixing.

I am using Version 0.7.1 and CSS style of GitHub2. It probably needs only a simple revision of the CSS file but I have no knowledge about how to do that. Please enlighten me if that's the case.

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

Start with the GitHub2 CSS style and the Markdown rendering path in MacDown, using the two nested-list examples as reproduction cases. Compare the rendered output for third-level nested lists and linked list items with the expected output; done means the redundant blank lines no longer appear in Version 0.7.1-style rendering.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, markdown
Domain
frontend
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.