I build this because I liked the HedgeDoc style but missed the option to use the same markdown and just use it as website somewhere. A stand-alone parser/renderer didn't exist.
With this static-hedgedoc project you can render your own markdown site. You can see a demo here that parses the markdown features page from HedgeDoc using this static renderer https://static-hedgedoc.sc2.nl/ All you need to do this too is:
- Clone the git repo
- Copy static-hedgedoc-demo.html as index.html
- in your index.html replace static-hedgedoc-demo.md with your markdown file, you should put it in the same folder as index.html.
- If you like the style as-is then you're done at this point with making edits.
- Upload to your site and done
Do read the github project page as there are caveats, there are bugs and it is still work in progress! I used mostly all of the same js projects as HedgeDoc uses to be as comparable as it can be. I did use the latest versions of libraries (HedgeDoc uses really old ones) which will cause some subtle differences. Also, all the js files (all resources really) are served from your site, not a single link to a CDN. Still, loading a site "only" involves about ~700kb of datatransfer so not too bad.
Todo: I want to make a separate project that uses static-hedgedoc + some glue to create a split-view editor/preview (like HedgeDoc) but just as editor without any of the fancy collaborative features.
2 comments
[ 3.0 ms ] story [ 14.3 ms ] threadWith this static-hedgedoc project you can render your own markdown site. You can see a demo here that parses the markdown features page from HedgeDoc using this static renderer https://static-hedgedoc.sc2.nl/ All you need to do this too is: - Clone the git repo - Copy static-hedgedoc-demo.html as index.html - in your index.html replace static-hedgedoc-demo.md with your markdown file, you should put it in the same folder as index.html. - If you like the style as-is then you're done at this point with making edits. - Upload to your site and done
Do read the github project page as there are caveats, there are bugs and it is still work in progress! I used mostly all of the same js projects as HedgeDoc uses to be as comparable as it can be. I did use the latest versions of libraries (HedgeDoc uses really old ones) which will cause some subtle differences. Also, all the js files (all resources really) are served from your site, not a single link to a CDN. Still, loading a site "only" involves about ~700kb of datatransfer so not too bad.
Todo: I want to make a separate project that uses static-hedgedoc + some glue to create a split-view editor/preview (like HedgeDoc) but just as editor without any of the fancy collaborative features.