Created
October 13, 2018 19:48
-
-
Save pydevops/98d5954765828291f7a35d3ec2b74eb7 to your computer and use it in GitHub Desktop.
markdown 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
#!/bin/bash | |
SRC_DIR=$HOME/Desktop | |
DEST_DIR=$HOME/man | |
mkdir -p $DEST_DIR | |
for mdfile in ${SRC_DIR}/*.md | |
do | |
filename=${mdfile##*/} | |
basename=${filename%.md} | |
pandoc -o ${DEST_DIR}/${basename}.html ${mdfile} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment