Markdown file can not show exactly when ``` start or end with a blank line #131

Closed
opened 2025-11-02 03:10:07 -06:00 by GiteaMirror · 12 comments
Owner

Originally created by @lotus-king on GitHub (Dec 19, 2016).

Description

put this markdown file https://try.gitea.io/lotus-king/tls/src/master/openssl.md to gogs or gitea .
gogs or gitea cannot correctly show the markdown file, it just show the markdown source file at code (``` start or end with a blank line) ,but github can show it correctly.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Originally created by @lotus-king on GitHub (Dec 19, 2016). - Gitea version (or commit ref): latest version - Git version: 2.3 - Operating system: CentOS - Database (use `[x]`): - [ x] MySQL - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) put this markdown file [https://try.gitea.io/lotus-king/tls/src/master/openssl.md](https://try.gitea.io/lotus-king/tls/src/master/openssl.md) to gogs or gitea, will reporduce the bug. - Log gist: ## Description put this markdown file [https://try.gitea.io/lotus-king/tls/src/master/openssl.md](https://try.gitea.io/lotus-king/tls/src/master/openssl.md) to gogs or gitea . gogs or gitea cannot correctly show the markdown file, it just show the markdown source file at code (``` start or end with a blank line) ,but github can show it correctly. <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40193245-markdown-file-can-not-show-exactly-when-start-or-end-with-a-blank-line?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github). </bountysource-plugin>
GiteaMirror added the topic/uistatus/blockedtype/bug labels 2025-11-02 03:10:07 -06:00
Author
Owner

@bkcsoft commented on GitHub (Dec 25, 2016):

@lotus-king could you try running it through blackfriday directly and see if that works? otherwise it's an upstream bug 🙁

@bkcsoft commented on GitHub (Dec 25, 2016): @lotus-king could you try running it through blackfriday directly and see if that works? otherwise it's an upstream bug 🙁
Author
Owner

@lunny commented on GitHub (Feb 24, 2017):

This is not resolved by #186 also. @andrew-boyarshin :) let's move it to v1.2

@lunny commented on GitHub (Feb 24, 2017): This is not resolved by #186 also. @andrew-boyarshin :) let's move it to v1.2
Author
Owner

@andrew-boyarshin commented on GitHub (Feb 24, 2017):

@lunny If I'm not very much mistaken I've already pointed out that this markdown file has multiple issues and blackfriday is not responsible for fixing invalid markdown.

@andrew-boyarshin commented on GitHub (Feb 24, 2017): @lunny If I'm not very much mistaken I've already pointed out that this markdown file has multiple issues and blackfriday is not responsible for fixing invalid markdown.
Author
Owner

@ethantkoenig commented on GitHub (Aug 27, 2017):

This issues seems to be fixed (https://try.gitea.io/ethantkoenig/sandbox/src/master/README.md). Someone please close

@ethantkoenig commented on GitHub (Aug 27, 2017): This issues seems to be fixed (https://try.gitea.io/ethantkoenig/sandbox/src/master/README.md). Someone please close
Author
Owner

@lunny commented on GitHub (Aug 27, 2017):

see https://try.gitea.io/lotus-king/tls/src/master/openssl.md, it seems the problem is not fixed?

@lunny commented on GitHub (Aug 27, 2017): see https://try.gitea.io/lotus-king/tls/src/master/openssl.md, it seems the problem is not fixed?
Author
Owner

@ethantkoenig commented on GitHub (Aug 27, 2017):

@lunny As far as I can tell, that's how it should be rendered. I don't see any ``` blocks that aren't being rendered.

@ethantkoenig commented on GitHub (Aug 27, 2017): @lunny As far as I can tell, that's how it should be rendered. I don't see any ``` blocks that aren't being rendered.
Author
Owner

@lunny commented on GitHub (Aug 27, 2017):

It ignored " ```".

@lunny commented on GitHub (Aug 27, 2017): It ignored " ```".
Author
Owner

@ethantkoenig commented on GitHub (Aug 27, 2017):

@lunny Oh, I see

@ethantkoenig commented on GitHub (Aug 27, 2017): @lunny Oh, I see
Author
Owner

@bkcsoft commented on GitHub (Aug 27, 2017):

It misses it because of invalid indentation. See https://try.gitea.io/bkc/tls/src/master/openssl.md and specifically c22378418a

Closing as NotABug 🙂

@bkcsoft commented on GitHub (Aug 27, 2017): It misses it because of invalid indentation. See https://try.gitea.io/bkc/tls/src/master/openssl.md and specifically https://try.gitea.io/bkc/tls/commit/c22378418a700bba1380581be58dc04320b29340 Closing as NotABug 🙂
Author
Owner

@lunny commented on GitHub (Aug 28, 2017):

@bkcsoft But github could render it correctly.

@lunny commented on GitHub (Aug 28, 2017): @bkcsoft But github could render it correctly.
Author
Owner

@bkcsoft commented on GitHub (Aug 28, 2017):

@lunny GitHub is not using the same markdown renderer as we do, and in any case it's an upstream issue and not an issue with Gitea itself. And the point still stands that the example given is invalid syntax (invalid indentation)

@bkcsoft commented on GitHub (Aug 28, 2017): @lunny GitHub is not using the same markdown renderer as we do, and in any case it's an upstream issue and not an issue with Gitea itself. And the point still stands that the example given is invalid syntax (invalid indentation)
Author
Owner

@lunny commented on GitHub (Aug 28, 2017):

@bkcsoft OK.

@lunny commented on GitHub (Aug 28, 2017): @bkcsoft OK.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#131