readme.html #938

Closed
opened 2025-11-02 03:42:27 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @bluemmb on GitHub (Aug 4, 2017).

Hi.

How can I add this feature, that gitea loads "readme.html" as html file under "readme.md" file in repositories home page ?

Originally created by @bluemmb on GitHub (Aug 4, 2017). Hi. How can I add this feature, that gitea loads "readme.html" as html file under "readme.md" file in repositories home page ?
GiteaMirror added the type/proposal label 2025-11-02 03:42:27 -06:00
Author
Owner

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

I think that's not a good idea maybe.

@lunny commented on GitHub (Aug 4, 2017): I think that's not a good idea maybe.
Author
Owner

@bluemmb commented on GitHub (Aug 4, 2017):

I don't want to use it in public places or somewhere that can cause security issues or ...
These are the reasons I want to have this feature :

  1. Our language is written from Right to Left.
  2. My friends who using local gitea are not good in english and main thing for our repos are readme part.
  3. With html files we have many features that we haven't it with md files.

I would be grateful If you could help me.

@bluemmb commented on GitHub (Aug 4, 2017): I don't want to use it in public places or somewhere that can cause security issues or ... These are the reasons I want to have this feature : 1. Our language is written from Right to Left. 2. My friends who using local gitea are not good in english and main thing for our repos are readme part. 3. With html files we have many features that we haven't it with md files. I would be grateful If you could help me.
Author
Owner

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

Maybe a config default off and admin could turn it on.

@lunny commented on GitHub (Aug 4, 2017): Maybe a config default off and admin could turn it on.
Author
Owner

@sapk commented on GitHub (Aug 4, 2017):

We could just add dir="auto" like gitlab https://gitlab.com/gitlab-org/gitlab-ce/issues/35#note_14966359

@sapk commented on GitHub (Aug 4, 2017): We could just add dir="auto" like gitlab https://gitlab.com/gitlab-org/gitlab-ce/issues/35#note_14966359
Author
Owner

@sapk commented on GitHub (Aug 4, 2017):

For more context, problem around that has been discuss on https://github.com/dear-github/dear-github/issues/147 because github suffer the same problem.

@sapk commented on GitHub (Aug 4, 2017): For more context, problem around that has been discuss on https://github.com/dear-github/dear-github/issues/147 because github suffer the same problem.
Author
Owner

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

@sapk we are different from Github. If user know what the dangerous, he can enable the feature himself.

@lunny commented on GitHub (Aug 4, 2017): @sapk we are different from Github. If user know what the dangerous, he can enable the feature himself.
Author
Owner

@sapk commented on GitHub (Aug 4, 2017):

Yes, I am not against. Just suggesting that if it's for RTL language there is maybe a better solution and that is has allready being discuss on other project.
As for displaying html file, some html syntax is allowed in markdown and for more complex I would suggest to use caddy with git plugin. I suggest that because it migth be enough fo the user.
On the other side, if needed we could easily implemnet/enable html file passtrough if admin allow it like you suggest.

@sapk commented on GitHub (Aug 4, 2017): Yes, I am not against. Just suggesting that if it's for RTL language there is maybe a better solution and that is has allready being discuss on other project. As for displaying html file, some html syntax is allowed in markdown and for more complex I would suggest to use caddy with git plugin. I suggest that because it migth be enough fo the user. On the other side, if needed we could easily implemnet/enable html file passtrough if admin allow it like you suggest.
Author
Owner

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

Allowing readme.html to be rendered isn't that much of a problem, IF all JS & SVG is disabled/removed from that file before rendering.

@bkcsoft commented on GitHub (Aug 8, 2017): Allowing `readme.html` to be rendered isn't that much of a problem, IF all JS & SVG is disabled/removed from that file before rendering.
Author
Owner

@6543 commented on GitHub (Sep 7, 2020):

I thin it is possible to do with "custom markdown rendering", just add this to the config:

[markup.html]
ENABLED = true
FILE_EXTENSIONS = .html
RENDER_COMMAND = "cat"
IS_INPUT_FILE = false
@6543 commented on GitHub (Sep 7, 2020): I thin it is possible to do with "custom markdown rendering", just add this to the config: ```ini [markup.html] ENABLED = true FILE_EXTENSIONS = .html RENDER_COMMAND = "cat" IS_INPUT_FILE = false ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#938