-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply external markup rendering to non-text files #4996
Comments
I have the same issue trying to render docx files using pandoc. I created an issue #7614. |
As you identified the type of rendering is determined by this switch Lines 200 to 269 in fc0001c
But interestingly I cant see a Edit:In the case of the render type not being known then this is run which provides the 'view raw' link. gitea/templates/repo/view_file.tmpl Lines 67 to 68 in bcbc9f3
So a change must be made that makes either of gitea/templates/repo/view_file.tmpl Lines 49 to 52 in bcbc9f3
Edit2, Solution: Perhaps a solution would be to add
at line Line 278 in fc0001c
|
[x]
):Description
Currently, files are only checked against external markup extensions when the file is a text file:
gitea/routers/repo/view.go
Lines 201 to 214 in fc0001c
I would like to be able to use external markup renderers to render previews of some binary formats, similar to how PDFs can be displayed inline. Instead, I always get the "view raw" page for binary files.
The text was updated successfully, but these errors were encountered: