Description
See gogs/gogs#211 and gogs/gogs#2097.
Most Python-related projects use reStructuredText .rst
instead of markdown files, for README.rst
and documentation. Sometimes other markup languages are used, or markdown with extensions currently not supported by Gitea. GitHub supports the following markups: https://github.com/github/markup/.
I propose the following feature:
[markup]
; List of file extensions that should be rendered by an external command
FILE_EXTENSIONS = .rst,.rest,.restx
; External command to render all matching extensions
RENDER_COMMAND = "rst2html.py --no-raw"
If, for example, the file README.rst
exists, its first 1024 bytes will be passed into stdin of rst2html.py --no-raw
and stdout will be displayed as html for the file preview.
An optional %s
will be replaced by the matched file extension (so that one can write a script that handles both .rst
and .asciidoc
).
As such a feature would be important to me, I am willing to implement this proposal, assuming there is a good chance it will be merged into master. Let me know if I can start working on it.
There is a $15 open bounty on this issue. Add to the bounty at Bountysource.