Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.
/ md2html Public archive

Generate beautiful CSS-flavoured HTML page from Markdown file

License

Notifications You must be signed in to change notification settings

MikeWent/md2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate beautiful CSS-flavoured HTML page from Markdown file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published