Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 859 Bytes

File metadata and controls

30 lines (19 loc) · 859 Bytes

sep2md

Turns Stanford Encyclopedia of Philosophy pages into markdown for more comfortable reading and easy conversion into other formats.

If you find the articles useful, consider supporting the SEP.

Usage

Build and run it from the repo:

cargo run --release -- <URL> [OUTPUT-PATH]

or install from crates.io and run:

cargo install sep2md
sep2md <URL> [OUTPUT-PATH]

If OUTPUT-PATH is not provided, the default path will be "name of the article.md" (e.g. "heidegger.md" for https://plato.stanford.edu/entries/heidegger/).

Conversion to EPUB

To convert to EPUB you'll need pandoc. Once it's installed, you can run:

pandoc something.md --toc --toc-depth=5 --shift-heading-level-by=-1 -o something.epub