go-markitdown

command module
v0.0.0-...-9b865c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 2 Imported by: 0

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

  1. Make sure you have Go installed (version 1.20 or higher)
  2. Install the tool:
go install github.com/chenjunqian/go-markitdown@latest

Usage

Basic command structure:

markitdown [flags] input_file output_file
Examples
  1. Convert a Word document:
markitdown document.docx document.md
  1. Convert a PDF with code blocks:
markitdown code.pdf code.md
  1. Convert an Excel spreadsheet to a Markdown table:
markitdown data.xlsx table.md
  1. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL