A tool convert css style into markdown inline style
Switch branches/tags
Nothing to show
Clone or download
Latest commit 9fb23db Apr 10, 2018
Permalink
Failed to load latest commit information.
markdown_css fix #7 Feb 10, 2017
themes add erye style Oct 28, 2017
.gitignore update Jul 28, 2017
CHANGES.md update Feb 2, 2017
LICENSE Initial commit Nov 13, 2016
MANIFEST.in mardown-css 0.0.1 finish Nov 13, 2016
Makefile update makefile Apr 10, 2018
README.md update Feb 12, 2017
README.rst update Nov 14, 2016
requirements.txt mardown-css 0.0.1 finish Nov 13, 2016
setup.py mardown-css 0.0.1 finish Nov 13, 2016

README.md

makrdown-css

pypi

Markdown css is a command tool to convert css style into markdown inline style.

Theme Demo

apollo.css

ocean.css

simple.css

style.css

typing.css

xiaolai.css

Install

maxOS

xcode-select --install
pip install markdown-css

linux

apt-get install libxml2-dev libxslt1-dev python-dev
apt-get install python-lxml
pip install markdown-css

Getting started

pip install markdown-css
mkdir public
touch style.css
markdown -h
markdown-css markdown.html --style=style.css --out=public

Themes

https://github.com/wecatch/markdown-css/tree/master/themes

Demo

git clone https://github.com/wecatch/markdown-css.git
cd themes
markdown-css markdown.html --style=simple.css --out=public

Selector

markdown-css support css selector like these:

element selector

p {
    margin: 10px 0;
}

multi element selector

h1,p,h2,pre {
    color: #333;
}

all element

* {
    font-size: 14px
}

pseudo-selector

h1:before {
    content: '#'
}

child element seletor

blockquote p {
    color:#888;
}

Pseudo-selector can't be used in inline-style, these selectos are write into <style> tag