Linux command
marky 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Convert a PDF
marky [document.pdf]
Convert a Word document
marky [document.docx] --output [converted.md]
Convert an Excel spreadsheet
marky [data.xlsx] -o [table.md]
Convert a PowerPoint presentation
marky [presentation.pptx] -o [slides.md]
Convert an HTML page to Markdown
marky [webpage.html] -o [content.md]
Convert a Jupyter notebook
marky [notebook.ipynb] -o [notebook.md]
说明
marky is a small Go command-line tool (and embeddable library) that converts documents into clean, readable Markdown. It understands CSV, EPUB, HTML, Jupyter notebooks (_.ipynb_), Microsoft Word (_.docx_), Microsoft Excel (_.xlsx_), PDF, and PowerPoint (_.pptx_) files. The input format is detected from the file extension, so a single command — _marky somefile.ext_ — is usually enough. Without -o, Markdown goes to stdout so marky can be chained with other tools (_marky report.pdf | pandoc -o report.html_). The project also ships a marky-mcp companion that exposes the same conversion functions over the Model Context Protocol for use with coding agents.
参数
- -o _FILE_, --output _FILE_
- Write the generated Markdown to _FILE_. Without this flag the result is printed to standard output.
- -h, --help
- Show usage information.
- -v, --version
- Print the version and exit.
FAQ
What is the marky command used for?
marky is a small Go command-line tool (and embeddable library) that converts documents into clean, readable Markdown. It understands CSV, EPUB, HTML, Jupyter notebooks (_.ipynb_), Microsoft Word (_.docx_), Microsoft Excel (_.xlsx_), PDF, and PowerPoint (_.pptx_) files. The input format is detected from the file extension, so a single command — _marky somefile.ext_ — is usually enough. Without -o, Markdown goes to stdout so marky can be chained with other tools (_marky report.pdf | pandoc -o report.html_). The project also ships a marky-mcp companion that exposes the same conversion functions over the Model Context Protocol for use with coding agents.
How do I run a basic marky example?
Run `marky [document.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o _FILE_, --output _FILE_ do in marky?
Write the generated Markdown to _FILE_. Without this flag the result is printed to standard output.