mirror of
https://github.com/lise-henry/crowbook
synced 2024-09-28 15:21:33 +02:00
Converts books written in Markdown to HTML, LaTeX/PDF and EPUB
book_example | ||
src | ||
templates | ||
tests | ||
.gitignore | ||
.travis.yml | ||
Bugs.md | ||
Cargo.toml | ||
LICENSE | ||
README.md |
Crowbook
Yet another converter from Markdown to (HTML, LaTeX, Epub).
Usage
$ crowbook some_file.book # or
$ cargo run some_file.book
Parse the config file and generate book in HTML, Epub and/or Latex/PDF (according to config file).
For more information see the book_example directory.
Features
Done
- Support for some simple formatconfiguration files to
list chapters and metadatas, so you just run
crowbook some_file
and you don't have to pass more options, it generates the rest. - Support for basic Markdown features useful in writing novels.
- Support for Epub2 and Epub3 format as output.
- Very basic support for LaTeX format as output, and PDF through it.
- Support for HTML format as output.
- Support for basic french typography in HTML/Epub format, and by that I mostly mean non-breaking spaces.
- Decent default templates and CSS.
- Some configuration for HTML/Epub templates and CSS.
ToDo
- Real support for LaTeX.
- Allow more customization.
- Provide a binary which accepts some option and not just an input file.
- Support for easily embedding custom fonts (and other files) in Epub/HTML.
- Correct support for technical books.
- Support for ODT as output format?
See also Bugs.
License
Currently, MIT but this might change.
Acknowledgements
Besides the Rust compiler and standard library, Crowbook uses the following libraries:
- pulldown-cmark (for parsing markdown)
- mustache (for templating)
- chrono (date and time library)
- uuid (to generate uuid)
While Crowbook directly doesn't use them, there was also some inspiration from Pandoc and mdBook.