Markdown rendering unordered item lists not properly
Open
Nobody has claimed this yet.
💊 bug
- Dominant language
- Go
- Stars
- 47.8k
- Forks
- 5.1k
- Avg merge
- 7h 23m
- Merged PRs (30d)
- 5
Description
- Gogs version: 0.9.60.0803
- Git version: 2.5.0
- Operating system: Linux
- Database (use
[x]):- PostgreSQL
- MySQL
- SQLite
- Can you reproduce the bug at https://try.gogs.io:
- Yes (provide example URL): https://try.gogs.io/gelim/markdown-bug
- No
- Not relevant
- Log gist:
Description
Markdown is not properly rendered in HTML: when opening an unordered list, the closing tag </ul> will be closed to far, thus indenting the rest of the document (padding-left: 2em; from the CSS).
It should be closed as soon enumaring the items (<li>) is finished.
(See POC provided via try.gogs.io)
See attached the same markdown code with proper rendering (by dilinger):

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
Start with the reproduction at https://try.gogs.io/gelim/markdown-bug and compare its unordered-list HTML with the attached properly rendered example. Trace the Markdown rendering entry point responsible for closing the
- element. Done means list items are closed correctly, the
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, go, html, markdown
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100