Skip to content
hareharePublic

About

A CLI tool for converting various file formats to Markdown

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

326 Commits

Folders and files

Repository files navigation

mq-conv turns PDFs, Office docs and other formats into clean, structure-preserving Markdown. It runs locally: no API keys, no network, no Python runtime. It is built to feed mq, the jq-like query tool for Markdown.

Features

Installation

curl -fsSL https://raw.githubusercontent.com/harehare/mq-conv/main/bin/install.sh | bash

or with Cargo:

cargo install mq-conv
cargo binstall mq-conv   # prebuilt release

Usage

mq-conv report.pdf                                # convert to stdout
cat notes.org | mq-conv --format org              # stdin
mq-conv reports/*.pdf --output-dir ./out          # many files, one .md each
mq-conv report.pdf --pages 3-5                    # selected pages only
mq-conv report.pdf -q '.h2'                       # print what an mq query selects
mq-conv book.pdf --max-tokens 4000                # prompt-sized chunk, with a resume cursor
mq-conv report.pdf --extract-images ./img         # keep embedded images
mq conv document.docx | mq -A 'section::section("Summary")'   # pipe into mq

Documentation

License

MIT

About

A CLI tool for converting various file formats to Markdown

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages