markitdown-rs
markitdown-rs is a Rust library designed to facilitate the conversion of various document formats into markdown text. It is a Rust implementation of the original markitdown Python library.
Features
It supports:
- Excel(.xlsx)
- Word
- PowerPoint
- Images
- Audio
- HTML
- Text-based formats (plain text, .csv, .xml, .rss, .atom)
- ZIP
Installation
Add the following to your Cargo.toml:
[]
= "0.1.0"
Usage
Initialize MarkItDown
use MarkItDown;
let mut md = new;
Convert a File
use ;
let options = ConversionOptions ;
let result: = md.convert;
if let Some = result else
Register a Custom Converter
You can extend MarkItDown by implementing the DocumentConverter trait for your custom converters and registering them:
use ;
;
let mut md = new;
md.register_converter;
License
MarkItDown is licensed under the MIT License. See LICENSE for more details.