界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

epub-to-markdown

epub-to-markdown

【效率与协作】Convert EPUB ebooks to Markdown format

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: epub-to-markdown description: Convert EPUB ebooks to Markdown format metadata: author: Zo category: Official display-name: Convert EPUB to Markdown emoji: 📚

Convert EPUB to Markdown

Purpose

Convert EPUB ebook files to Markdown format, preserving structure and formatting.

Input

  • Path to the EPUB file you want to convert

Steps

  1. Install pandoc:
apt-get update && apt-get install -y pandoc
  1. Convert the EPUB file to Markdown:
pandoc "<user's_epub_path>" -t gfm-raw_html -o "<output_markdown_path>"
  1. Tell the user where the converted Markdown file was saved.

Note

The gfm-raw_html format produces cleaner output by removing embedded HTML elements from the EPUB.

我的收藏