-
Notifications
You must be signed in to change notification settings - Fork 2k
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
加入pdf.js的支持?[solved] #442
Comments
你准备怎样在Markdown文件中指明pdf文件的URL?是否类似于mathjax,先识别文件头的
的方式,识别出链接文件以pdf为拓展名,就自动加载? |
You can include html in your markdown file: <div id="pdf-container"></div>
<script src="/js/pdfobject.js"></script>
<script>PDFObject.embed('/yourpdf.pdf', '#pdf-container');</script>** But why don't you simply use |
@maple3142 It's not working on Safari for iOS, even the newest version. PDF.JS is still required for some browsers on mobile platform. |
Since markdown can contain html, you can add your own js library just like adding a library on a normal html page. |
Feature added in #466. |
@jasonsun0310 Usage of new pdf tag: https://theme-next.org/docs/tag-plugins/pdf/ |
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs. |
请问怎么把pdf.js做到next 主题里呢?我想用pdf.js内嵌pdf 然后通过iframe 展示出来。
I agree and want to create new issue
Expected behavior
Actual behavior
Steps to reproduce the behavior
Node.js and NPM Information
Package dependencies Information
Hexo Information
Hexo version
Hexo Configuration
NexT Information
NexT Version:
NexT Scheme:
NexT Configuration:
Other Information
The text was updated successfully, but these errors were encountered: