| name | markit |
| description | Convert files and URLs to Markdown. Supports PDF, DOCX, PPTX, XLSX, HTML, EPUB, CSV, JSON, GitHub URLs, images, audio, ZIP, and more. Use when you need to extract content from any document format. |
markit
Convert anything to Markdown.
CLI
npx @shiftlabs/markit report.pdf -q
npx @shiftlabs/markit https://en.wikipedia.org/wiki/Markdown -q
npx @shiftlabs/markit https://github.com/owner/repo -q
npx @shiftlabs/markit https://github.com/owner/repo/issues/42 -q
npx @shiftlabs/markit https://gist.github.com/user/id -q
npx @shiftlabs/markit document.docx -q -o output.md
npx @shiftlabs/markit --help
npx @shiftlabs/markit formats
-q gives raw markdown. --json gives { markdown, title }.
SDK
import { Markit } from "@shiftlabs/markit";
const markit = new Markit();
const { markdown } = await markit.convertFile("report.pdf");
const { markdown } = await markit.convertUrl("https://example.com");
const { markdown } = await markit.convert(buffer, { extension: ".docx" });