Created
September 25, 2017 09:28
-
-
Save siayi/cd417ed43f4f2d53d44d774cbc5d647a to your computer and use it in GitHub Desktop.
Convert markdown files to html
This file contains 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
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