show pdf attachment directly in markdown file #3233

Closed
opened 2025-11-02 05:05:02 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @laoshaw on GitHub (Apr 23, 2019).

I can do PDF attachment easily, can I show the PDF directly in the markdown file like what image-attachments are in gitea?

that is, if I do [mypdf](my.pdf) it will show the PDF in a embedded scroll-able window right in the middle of text, just like a picture in a html.

Originally created by @laoshaw on GitHub (Apr 23, 2019). I can do PDF attachment easily, can I show the PDF directly in the markdown file like what image-attachments are in gitea? that is, if I do `[mypdf](my.pdf)` it will show the PDF in a embedded scroll-able window right in the middle of text, just like a picture in a html.
GiteaMirror added the type/featureissue/confirmed labels 2025-11-02 05:05:02 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jun 24, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jun 24, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@dmikushin commented on GitHub (Jan 25, 2023):

Gitea views PDFs with pdfjs in an

@dmikushin commented on GitHub (Jan 25, 2023): Gitea views PDFs with pdfjs in an <iframe>. Unfortunately, unlike <img>, the <iframe> is not a valid markup tag, and does not display anything. Perhaps, one would need to develop an [external renderer](https://docs.gitea.io/en-us/external-renderers/)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3233