Skip to content

KazroFox/convertmarkdown.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

convertmarkdown.py

This script takes all markdown files in a given directory, parses them, then outputs HTML by using pandoc.

I use this script as part of a git commit hook, so that when I push markdown files up to a correctly configured folder, all the markdown files in the repo get converted to HTML and placed in a publicly accessable web folder. My use case is for being able to reference my college notes from anywhere, but I would imagine it could be useful for other purposes.

convertmarkdown.py uses the built-in python path handling, so it should handle any paths provided to it regardless of the platform. That being said, it's entirely untested on Windows, so I can't guarantee that it works properly. But it should. Submit an issue if it doesn't.

This script is licensed as GPLv3, but I doubt there's going to be many derivative works.

See the wiki for documentation.

About

Script to render all markdown files in a directory

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages