ObsidianToHtmlConverter
I made a small python script for converting obsidian md-file to static (local) html (recursively adds all link/images) I made this script for when I need to distribute something from my obsidian vault to someone that either have obsidian, or doesn't.
The script has 1 option:
- Export the choosen md-file to a new vault and bring all the images and linked md-files with it (recursively!)
- Easily opened as a new vault in obsidian and everything just works!
- Exactly like nr 1 above, but also create html-files next to the md-files (with images and working links to other md.html-files in vault)
- The script puts an index.html-file in the root of the exported vault that is a direct link to your exported file.md.html for easily access
Run this script from the root of obsidian vault
usage: python3 exportMdFileToHtml.py <filename.md> <[y/n](optional) y=default => html-export>
- "<filename.md>" no filepath needed unless you have several files with same name
Only tesed on Linux!
- script uses
~/export_<filename>
as output-foldername, so maybe have to change for windows...