Skip to content

Instantly share code, notes, and snippets.

@siayi
Created September 25, 2017 09:28
Show Gist options
  • Save siayi/cd417ed43f4f2d53d44d774cbc5d647a to your computer and use it in GitHub Desktop.
Save siayi/cd417ed43f4f2d53d44d774cbc5d647a to your computer and use it in GitHub Desktop.
Convert markdown files to html
Yep, have a look at http://pandoc.org/ or markdown-it https://github.com/markdown-it
It now depends, whether you want to merge the HTMl files or not:
# Single output files
for f in *.md ; do pandoc ${f} -f markdown -t html -s -o ${f}.html ; done
# One output file
pandoc *.md -f markdown -t -s html -o merged.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment