A test for markdownhere, a minuscule library that let showdown.js automatically do its magic on all elements marked with class x-mdhere
.
Just set the class on HTML elements you want to fill in with Markdown, and include both showdown.js
and markdownhere.js
(place the latter in a script tag right before the end of the body, to have it run when the DOM is ready).
Please be aware that Markdown code cannot be indented as its containing HTML element, because indentation is used in Markdown to define code blocks.
https://wafi.iit.cnr.it/webvis/markdownhere/markdownhere.js