工农解放报第二期26.11

This commit is contained in:
Nobody committed 2026-11-12 11:13:28 +08:00
1 parent 97e84fa6c4
commit 5977b1b272
17 files changed
+604 -46

No files matched your search

+7 -1
View File
@@ -94,13 +94,19 @@ deno run -A main.ts --from 26.0.0 generate md
# 将每个配置的文章合并导出为 Markdown
deno run -A main.ts generate md
# 导出为 HTML(图片直接内嵌,路径从 md.path 派生)
deno run -A main.ts generate html
# 根据 md.path 导出为纯文本(输出文件名中的 md 会替换为 txt)
deno run -A main.ts generate txt
# 按配置中的 publication 生成 EPUB 3,包含可点击目录
# 按配置中的 publication 生成 EPUB 3,包含可点击目录和 EPUB 包内图片
deno run -A main.ts generate epub
```
Markdown 和 HTML 导出会将本地图片嵌入为 Base64 data URL。EPUB 不使用 data URL,
而是将图片作为 EPUB 包内资源保存并从章节引用,兼容 EPUB 阅读器的资源模型。
EPUB 默认使用 `md.path` 将扩展名替换为 `.epub`;也可在每个配置中设置
`[settings.epub]` 的 `path`、`title`、`author` 和 `language`。每篇文章会拆成独立章节,
EPUB 导航目录按出版物排序链接到各章节。