Crate repub

Source
Expand description

A library for turning mhtml webpages into summarized epub articles

This is primarily intended for use in repub for reMarkable devices, but can be generally used for webpage summarization.

§Examples

use repub::Repub;

let mhtml = // ...
let mut buff = Vec::new();
Repub::default().mhtml_to_epub(mhtml, &mut buff).unwrap();

Structs§

NoopTransform
a transform that preserves valid iamge types, and ignores all others
Repub
The main class for converting mhtml

Enums§

EpubVersion
Represents the EPUB version.
Error
Possible errors during epub creation.
ImageFormat
The image format of the transformed image
ImageHandling
How to handle images in the summarized article.

Traits§

ImageTransform
a method for altering images for inclusion