spider_transformations
A high-performance transformation library for Rust, used by Spider Cloud for AI-powered content cleaning across multiple locales.
This project depends on the spider crate.
Usage
[]
= "2"
use content;
Transform types
- Markdown
- Commonmark
- Text
- Markdown (Text Map) or HTML2Text
- HTML2XML
Document formats (feature: document)
Convert Office documents directly to markdown:
- Excel (.xlsx)
- Word (.docx)
- PowerPoint (.pptx)
Enable with:
[]
= { = "2", = ["document"] }
Document conversion is automatic — binary files matching Office formats are detected and converted to markdown tables and text. No configuration needed beyond enabling the feature.
Enhancements
- Readability
- Encoding
Chunking
There are several chunking utils in the transformation mod.
This project has rewrites and forks of html2md, and html2text for performance and bug fixes.
License
MIT