/md2html-with-css

An Markdown To HTML converter with custom CSS

Primary LanguageShellMIT LicenseMIT

Markdown to HTML with CSS

About

A Markdown to HTML script that can convert more than 1 markdown files into html.

  • Converts more than one file
  • Uses Github Markdown (Can be changed to plain markdown)
  • Use your own custom CSS instead of the defaultly generated CSS

Requirments

  • markdown
  • pandoc

Usage

git clone https://github.com/systemcoding/md2html-with-css/
cd md2html-with-css/
./convert.sh [--dest dir] file1.md file2.md ...

Quick Example:

./convert.sh --dest ./posts/ ./md/*.md

NOTE: --resource-path=.:images flag is added to this commit (88fa636) which will allow the user to place images locally in their markdown files. Don't forget to change the images with the directory that has all the images

Here the ./posts/ directory is where the HTML files will be placed and ./md/*.md is where all the Markdown files are located Also an CSS file is included in the root directory of the repo

Credits:

Thanks to hkim0331 for the script and helping in expanding it!