For single notes you can use Typora - I’m using it to copy notes as HTML and paste them in WordPress’ back-end.
Similarly, you can merge multiple notes - either using one of the available plugins for Obsidian or manually (combining MarkDown files is the same as combining TXTs and can be done with a single command in a terminal) and then go the Typora route.
Of course, this way you lose any inter-linking between notes, and I don’t think images are supported. However, if that’s what you want, exporting hundreds of linked MarkDown notes as HTML while keeping their internal structure/links, then you need a whole different solution that I don’t think even exists.
This is not exact solution to your query, but look forward to this potential solution:
I recently found Publii. It is an offline CMS (static site generator). But currently don’t support any of the Obsidian features (except markdown input). However, they say they are going to allow extending it through ‘Plugins’.
Hope, it will help us publish Obsidian Vaults through it. Btw, I raised an issue for this specific enhancement on their Github profile. It would be nice if more persons, encourage them to bring such plugin.
Yes, exactly right. Obsidian is not as flexible as one would expect. Officially, it only supports pdf export now, which means that pdfs in dark mode don’t play any role.
pdf means that the complex CSS formatting will be broken.
Exporting with plugins also breaks Obsidian CSS formatting
would be something that would be really helpful.
All this workarounds mentioned in these topics are mostly not easy to install, depend on single user (who maintain the tool) and sometimes fail.
If Obsidian looks for commercial user…then this kind of export is really needed.
The tool mentioned by @Froodooo lead me to find this one called obsidian-html and man it is simple and efficient ! It might not allow to put a whole vault in one single file but it allows to locally share a working vault that can run without Obsidian from a local server or even directly as html files with relative paths. It even supports :
A graph (when runed on a local server)
Folder pane
Tag pane (only works with yaml front matter tags)
Backlink pane
It seems to me like a great way to share parts of your vault with friends and family without making a live website which is great for slightly more private stuff.
First try, seems to work pretty well. Exporting an entire vault did not include any canvas files, though, and exporting a single canvas file yielded something pretty empty. But the creator acknowledges he’s working on that.
Also, each note is rendered into its own html file. I have a fantasy that someday it might be possible to package everything into a single html5, but that’s probably unrealisitic.
Putting multiple files into one html file is an interesting idea. I’ll consider making this a feature in the future, although it is definetly a hefty undertaking so it probably won’t be soon.
And thanks for the shoutout, I’m glad you like the plugin!