psklf / add-css-to-html-from-md

Add css to the plain HTML file generated from markdown file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add CSS to a HTML file

When you convert from markdown to a plain HTML file without style you may want to add some style to it.

I wrote this simple program to do such work: add the CSS file to the plain HTML file.

Install

cd add-css-to-html-from-md
make

Usage

If you use pandoc to do the convert work, you can use the convert shell script to convert file and add style.

Use pandoc to convert markdown file then add css

Usage:
    bash convert.sh <source_md_file> <output_html_file>
    bash convert.sh <source_md_dir>

when provide a directory, output files to current folder.

Only add style

Useage:
    -<source html file> -out <path> [-options]
Options:
    -s:Use simple css
    -f:Use Github css

Thanks

CSS source

Get css from github-markdown-css

Highlightjs

highlightjs

About

Add css to the plain HTML file generated from markdown file

License:GNU Affero General Public License v3.0


Languages

Language:CSS 72.6%Language:C 18.3%Language:Shell 6.5%Language:Makefile 1.4%Language:HTML 1.1%