Convert an HTML webpage into an EPUB file with Pandoc
Run:
$ pandoc -f html -t epub3 -o output.epub input.html --quiet
You can add metadata for EPUB:
$ pandoc -f html -t epub3 --epub-metadata=metadata.xml -o output.epub input.html
If you need to install Pandoc on Trisquel GNU/Linux run:
$ sudo apt install pandoc
command-line interface (cli) personal computing pandoc gnu linux trisquel text processing wiki shell literacy offline