Generate beautiful CSS-flavoured HTML page from Markdown file
md2html README.md > docs.html
Alternatively you can use option -o
instead of >
to specify output file.
md2html -f mini README.md > docs.html
Available flavours (click to preview):
You can also run md2html --help
to see available flavours.
md2html.py -e README.md > docs.html
Output HTML will contain <style>
with pre-downloaded stylesheet(s) instead of just <link>
tag. This might be useful if you need to browse generated documents offline.
---
title: My awesome document title
---
# The rest of Markdown
or evenen without delimiters:
title: My awesome document title
# The rest of Markdown
Also you can use -t
to set page title without editing the source document.
Clone this repository
git clone https://github.com/MikeWent/md2html.git && cd md2html
Install dependencies
pip3 install --user --upgrade -r requirements.txt
Create symlink
sudo ln -s $PWD/md2html.py /usr/local/bin/md2html
Fetch updates
git pull
Update dependencies
pip3 install --user --upgrade -r requirements.txt
MIT