Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Systematic way to convert multiple markdown files to html? #289

Open
uncreativename opened this issue Aug 17, 2015 · 1 comment
Open

Systematic way to convert multiple markdown files to html? #289

uncreativename opened this issue Aug 17, 2015 · 1 comment

Comments

@uncreativename
Copy link

Is there an API to this package that allows converting multiple markdown files to html via command line or through Atom's GUI interface?

Maybe something like this: atom-markdown-preview ~/markdown_files --output ~/html_files

@leipert
Copy link

leipert commented Sep 2, 2015

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants