Markdown 生成 Epub (Typora + pandoc)


一、安装 pandoc

macOS 上使用 brew 安装

brew install pandoc

其他系统可见:https://pandoc.org/installing.html


安装成功后查看版本

pandoc --version

$ pandoc --version
pandoc 2.16.2
Compiled with pandoc-types 1.22.1, texmath 0.12.3.2, skylighting 0.12.1,
citeproc 0.6, ipynb 0.1.0.2
User data directory: /Users/user/.local/share/pandoc
Copyright (C) 2006-2021 John MacFarlane. Web:  https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.

二、Typora + pandoc 导出 Pandoc 文件

1、打开Typora,选择 文件 --> 导出 --> Epub

如果已安装,则会提示你的 Epub 保存路径


如果没有安装 Pandoc,会弹窗提示:
在这里插入图片描述

Typora 不会帮你安装 Pandoc


点击 按说明安装 Pandoc 会显示下面说明
在这里插入图片描述


我在这篇文档前方添加 标题 + toc

这是个人习惯,你也可以不加

# Install and Use Pandoc

@[toc]

2、点击 设置 Pandoc 路径,会弹出设置窗口

在这里插入图片描述


三、看看效果

我的 Epub 生成效果如下

生成


2024-06-20(四)

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

编程乐园

请我喝杯伯爵奶茶~!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值