Created
April 21, 2020 00:15
-
-
Save dantonnoriega/c2d92d9b71565123a6372cab4eb36317 to your computer and use it in GitHub Desktop.
a simple and quick pandoc function to convert an .md to .html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# quick convert any .md to .html | |
function md2html () { | |
/usr/local/bin/pandoc --standalone --template=https://raw.githubusercontent.com/tajmone/pandoc-goodies/master/templates/html5/github/GitHub.html5 --highlight-style=pygments --css=https://bootswatch.com/3/lumen/bootstrap.min.css --metadata pagetitle=$1 $1 -o ${1%.*}.html | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment