Issue comment issue: Unwanted empty lines in multi level lists #6103

Closed
opened 2025-11-02 06:45:12 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @per-ok on GitHub (Oct 6, 2020).

Description

This applies to the Issue editor and the Markdown file editor.
Open an issue in gitea and add the this text.
In write view: an extra intended empty line between "level 2f" and "level 1c"
In preview view: extra empty lines between "level 1b" and "level 2d", and "level 1c" and "level 2g". The intended empty line is not present.

  • level 1a

    • level 2a
    • level 2b
    • level 2c
  • level 1b

    • level 2d
    • level 2e
    • level 2f
  • level 1c

    • level 2g
    • level 2h
    • level 2i

Screenshots

markdown-issue-write
markdown-issue-preview

Originally created by @per-ok on GitHub (Oct 6, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.12.4 (try.gitea.io: 1.13.0) - Git version: Not relevant - Operating system: Not relevant - Database (use `[x]`): Not relevant - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (https://try.gitea.io/per-ok/test/issues/1, https://try.gitea.io/per-ok/test/src/commit/89c8f09e1456058abfc26b992ce1c7ad0db4d52c/README.md) - [ ] No - [ ] Not relevant - Log gist: Not relevant ## Description This applies to the Issue editor and the Markdown file editor. Open an issue in gitea and add the this text. In write view: an extra intended empty line between "level 2f" and "level 1c" In preview view: extra empty lines between "level 1b" and "level 2d", and "level 1c" and "level 2g". The intended empty line is not present. * level 1a * level 2a * level 2b * level 2c * level 1b * level 2d * level 2e * level 2f * level 1c * level 2g * level 2h * level 2i ## Screenshots ![markdown-issue-write](https://user-images.githubusercontent.com/12234217/95202653-e7078d80-07e1-11eb-8bab-71130cb4ee34.png) ![markdown-issue-preview](https://user-images.githubusercontent.com/12234217/95202646-e3740680-07e1-11eb-9e2d-ff67003cad21.png)
GiteaMirror added the type/upstream label 2025-11-02 06:45:12 -06:00
Author
Owner

@zeripath commented on GitHub (Oct 6, 2020):

From the common mark js dingus: (https://spec.commonmark.org/dingus/)

Screenshot from 2020-10-06 17-24-22

@zeripath commented on GitHub (Oct 6, 2020): From the common mark js dingus: (https://spec.commonmark.org/dingus/) ![Screenshot from 2020-10-06 17-24-22](https://user-images.githubusercontent.com/1824502/95229772-e62e2600-07f8-11eb-988d-6bd9c18ab34d.png)
Author
Owner

@zeripath commented on GitHub (Oct 6, 2020):

Even Github looks very similar to me...

  • level 1a

    • level 2a
    • level 2b
    • level 2c
  • level 1b

    • level 2d
    • level 2e
    • level 2f
  • level 1c

    • level 2g
    • level 2h
    • level 2i
@zeripath commented on GitHub (Oct 6, 2020): Even Github looks very similar to me... * level 1a * level 2a * level 2b * level 2c * level 1b * level 2d * level 2e * level 2f * level 1c * level 2g * level 2h * level 2i
Author
Owner

@per-ok commented on GitHub (Oct 8, 2020):

Compare with no empty lines between the bulletpoints:

https://try.gitea.io/per-ok/test/issues/1#issuecomment-32129

@per-ok commented on GitHub (Oct 8, 2020): Compare with no empty lines between the bulletpoints: https://try.gitea.io/per-ok/test/issues/1#issuecomment-32129
Author
Owner

@silverwind commented on GitHub (Oct 8, 2020):

Could fix with this, but I'm not sure if we violate any specs with that.

.markdown:not(code) ul li p {
  margin-bottom: 0;
}
@silverwind commented on GitHub (Oct 8, 2020): Could fix with this, but I'm not sure if we violate any specs with that. ```css .markdown:not(code) ul li p { margin-bottom: 0; } ```
Author
Owner

@wxiaoguang commented on GitHub (Dec 7, 2021):

I think this problem has been fixed:

image
@wxiaoguang commented on GitHub (Dec 7, 2021): I think this problem has been fixed: <img width="398" alt="image" src="https://user-images.githubusercontent.com/2114189/145052124-d36c7c83-b75e-4651-b715-49c10d69b6dc.png">
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6103