I wrote a library that uses the nim js backend to glue together existing javascript libraries to create a self-rendering m̶a̶r̶k̶d̶o̶w̶n̶ html document with a built-in text editor.
To use it prepend a markdown document with the following line of html and open in a browser:
<!doctype html><script type=module src=https://esm.sh/dogfen></script><textarea style=display:none>
My main use-case being to share an interactive markdown document with a non-technical audience.
---
See the demo of the supported markdown syntax.
Other use cases:
Curious if folks are aware of any other nim-based javascript code distributed on https://npmjs.com.
Nice! Reminds me of https://casual-effects.com/markdeep/
(Curious anecdote: markdeep supports also ascii diagrams to html and in some past slides Araq used for NimConf I have a hand using markdeep ascii diagram rendering to support diagram generation…)
Thanks for pointing me to markdeep! I wasn't familiar with that one!
Diagrams would be nice, I'll probably integrate mermaid similar to the github markdown renderer.