Skip to content
Generate beautiful CSS-flavoured HTML page from Markdown file
Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.gitignore
LICENSE
README.md
flavours.yaml
md2html.py
requirements.txt
template.html

README.md

md2html

Generate beautiful CSS-flavoured HTML page from Markdown file

How to use

md2html README.md > docs.html

Alternatively you can use option -o instead of > to specify output file.

Change flavour

md2html -f mini README.md > docs.html

Available flavours (click to preview):

You can also run md2html --help to see available flavours.

Embedded stylesheets

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.

HTML title

---
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.

Installation

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

Upgrade (run this once a week)

Fetch updates

git pull

Update dependencies

pip3 install --user --upgrade -r requirements.txt

License

MIT

You can’t perform that action at this time.