Europa CLI is a CLI for converting HTML into valid Markdown.
Install
Install using your preferred package manager. For example;
$ npm install --save-dev europa-cli
You'll need to have at least Node.js 12.22.0 or newer.
That said; you'll most likely want to install it globally so that you can run europa
from anywhere:
$ npm install --global europa-cli
Check out europa, europa-worker, or node-europa if you want to install it for use within a web browser, worker, or Node.js respectively.
Examples
Convert HTML from STDIN
into Markdown:
$ europa < index.html
Convert an HTML file into a Markdown file in another directory:
$ europa index.html --output docs
CLI
Usage: europa [options] [file ...]
Options:
-V, --version output the version number
-a, --absolute use absolute URLs for elements (e.g. anchors, images)
-b, --base-uri <uri> base URI for elements (e.g. anchors, images)
-e, --eval <html> evaluate HTML string
--eol <character> end of line character
-i, --inline insert URLs for elements (e.g. anchors, images) inline
-o, --output <path> output directory (for files) or file (for eval/stdin)
-h, --help display help for command
Bugs
If you have any problems with Europa CLI or would like to see changes currently in development you can do so here.
Contributors
If you want to contribute, you're a legend! Information on how you can do so can be found in CONTRIBUTING.md. We want your suggestions and pull requests!
A list of Europa contributors can be found in AUTHORS.md.
License
Copyright © 2022 neocotic
See LICENSE.md for more information on our MIT license.