A versatile utility library for converting various file formats to Markdown.
Get started now View it on GitHub
| Format | Extensions | Description |
|---|---|---|
.pdf |
PDF documents | |
| Word | .docx |
Microsoft Word documents |
| HTML | .html, .htm |
HTML web pages |
| Excel | .xlsx, .xls |
Excel spreadsheets |
| CSV | .csv |
Comma-separated values |
| Jupyter | .ipynb |
Jupyter notebooks |
| PowerPoint | .pptx |
PowerPoint presentations |
| XML/RSS | .xml, .rss, .atom |
XML and feed formats |
| Images | .jpg, .png, .gif |
Image files (metadata extraction) |
| Audio | .mp3, .wav |
Audio files (metadata extraction) |
| Text | .txt |
Plain text files |
| Archives | .zip |
ZIP archives |
import { convertToMarkdown } from '@cognipeer/to-markdown';
// Convert a PDF file
const markdown = await convertToMarkdown('./document.pdf');
console.log(markdown);
Ready to get started? Check out our Installation Guide and API Documentation.
This project is maintained by Cognipeer and released under the MIT License.