- Use
upon
instead ofeyre
- Add a way to change epub direction
- Make sure XML names don't start with invalid characters (dluschan)
- Fix a bug in EPUB3 template
- Use
upon
instead ofmustache
for the templates.
- Add a new
raw_title
method toTocElement
to set an alternative HTML-free title when disabling HTML escaping for titles.
- Add a new option to EpubBuilder to disable HTML encoding for fields that don’t require it.
- Unfortunately this means you need to pass an additional bool to
toc.render
(true
to keep past behavior)
- Fix all non-valid characters in IDs (thebaron88)
- Fix multi-author tags (quartzlibrary)
- Escape nav.xhtml (thebaron88)
- Replace error-chain with eyre (mexus)
- Add deflate compression to zip (dgel)
- Add type-safe methods to modify metadata (Mensch)
- Make libzip/time feature optional (QuartzLibrary)
- Escape external contents (jtojnar)
- Add an exemple (ultrasaurus)
- Add page direction (erasin, jtojnar)
- Move to Rust 2021 edition
- Escape invalid < and > in XHTML code
- Fix EPUB3 typo induced in last update.
- Add support for multiple authors, subjects and descriptions
- Fix empty lines and indentation of elements
- Only include the deflate feature for zip
- Fix TOC when chapter titles contain HTML (see issue #13)
- Fix issue reading zip files on some readers
- The example bin should now produce a valid EPUB.
- Sanitize HTML before writing toc.ncx titles.
- Use ID instead of file name in cover metadata (see issue #6)
- Type deduction fixes for new Rust compiler
- Add the
ZipCommandOrLibrary
wrapper.
- Add
test
method toZipCommand
to test whether this zip command is installed on the system
- Replace '' by '/' in zip files path under Windows
- Fix XML format (thanks to @baskerville)
- Updated dependencies to latest major version
- Now requires rustc >= 1.20.0
- Breaking change: now requires rustc >= 1.14.0.
- Escape quotes in titles when writing content.opf.
- Update chrono dependency to 0.4.
- Update error-chain dependency to 0.11.0.
- Update uuid dependency to latest version.
- Avoid rendering empty anchors within nav element.
- Update dependencies (chrono, uuid, error-chain) to latest versions.
Fix the way mimetype
is stored in the EPUB file (insure it isn't deflated).
This caused some minor breaking changes:
- The
Zip
implementations now take care of adding themimetype
file, notEpubBuilder
. ZipLibrary::new()
now returns aResult<ZipLibrary>
.
Normally, replacing ZipLibrary::new()
with e.g. ZipLibrary::new()?
should be
enough to switch to this new version.
- Fix the cover image properties in EPUB3.
- Some code cleaning.
- Add
add_cover_image
method toEpubBuilder
. - Add
ReferenceType
enum andreftype
method toEpubContent
to add items to the guide section (EPUB2) or the landmarks section of nav.xhtml (EPUB3).
- initial release