When converting from Markdown to HTML, I'd love to add a custom onload
event handler in the generated html page, like this:
<body onload="myOnLoad();">
It this possible with pandoc
? How?
There are two possibilities:
addEventListener
method instead, and add the script to the document, e.g. via -H
.