我使用以下命令为 .epub 文件生成单页 .html 文件,
pandoc -f epub -t html -o output.html ./book.epub
Run Code Online (Sandbox Code Playgroud)
但 .html 文件缺少图像。有没有办法告诉 pandoc 或其他东西将图像嵌入其中?就像 Chrome 的SingleFile产生的那样。
您可以用来--embed-resources指示 Pandoc 将图像和样式表(以及...)作为数据 URI 包含在 HTML 中。查看官方手册了解更多信息
该--standalone选项还应用于包含 HTML 页眉和页脚
pandoc -f epub -t html -o output.html ./book.epub --standalone --embed-resources
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1965 次 |
| 最近记录: |