在 GitHub Markdown 中显示 PDF [英] Display PDF in GitHub Markdown

查看:122
本文介绍了在 GitHub Markdown 中显示 PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这与这篇文章中提出的问题非常相似,但该帖子似乎不适用于 GitHub 解析的 Markdown.

This is quite similar to what is being asked in this post, but the post does not seem to work for GitHub's parsed Markdown.

简单地说,假设我在 GitHub 存储库中有一个 PDF.有什么方法可以将其呈现/嵌入到存储库中的 Markdown 文件中(例如 README.md 文件)?

Simply put, let us say I have a PDF in a GitHub repository. Is there any way to render/embed that in a markdown file that is in the repository (e.g. the README.md file)?

我也愿意将 PDF 放在 GitHub 以外的位置,并从 Markdown 文件链接到它,如果这是完成这项工作所必需的.

I would also be open to having the PDF in a location other than GitHub and linking to it from the markdown file if that is what is required to make this work.

推荐答案

目前在 github markdown 中无法预览 pdf,但是您可以嵌入 pdf 的图像.

Currently there is no way to preview a pdf in github markdown, however you can embed an image of the pdf.

编辑
这里:

你能做的最好的是一个 greasemonkey 扩展,它允许您可以调用 pdf 查看器,例如最近的 pdf.js(使用 HTML5 构建的便携式文档格式 (PDF) 查看器.),允许您完全在线查看 pdf,而无需安装任何 pdf 插件.

The best you can do is a greasemonkey extension which would allow you to call a pdf viewer, like the recent pdf.js (a Portable Document Format (PDF) viewer that is built with HTML5.), allowing you to view a pdf entirely online, without any pdf plugin installed.

这篇关于在 GitHub Markdown 中显示 PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆