modulepackage
0.0.2
Repository: https://github.com/chenjunqian/go-markitdown.git
Documentation: pkg.go.dev
# README
go-markitdown
A Go-based command-line tool and library for converting various file formats to Markdown.
Features
- Convert DOCX (Word) documents to Markdown
- Convert HTML files to Markdown
- Convert PDF documents to Markdown (including code blocks)
- Convert XLSX (Excel) spreadsheets to Markdown tables
- Preserve basic formatting during conversion
- Lightweight and fast
Installation
- Make sure you have Go installed (version 1.20 or higher)
- Install the tool:
go install github.com/chenjunqian/go-markitdown@latest
Usage
Basic command structure:
markitdown [flags] input_file output_file
Examples
- Convert a Word document:
markitdown document.docx document.md
- Convert a PDF with code blocks:
markitdown code.pdf code.md
- Convert an Excel spreadsheet to a Markdown table:
markitdown data.xlsx table.md
- Convert an HTML file:
markitdown page.html page.md
Flags
-f
: Specify the input file path-o
: Specify the output file path
License
This project is licensed under the MIT License - see the LICENSE file for details.
# Packages
No description provided by the author