So basically use any markdown package you want, then in Template.x.onRendered call hljs.highlightBlock on the relevant elements - probably this.findAll('code'). The simple:highlight.js package exports the hljs symbol.
Hmm, calling hljs.highlightBlock(this.findAll('code')) doesn’t work from onRendered in my app – I think because the code is not visible when the template is rendered but only becomes visible when a toggle is selected. I’ll have to look at the PR approach later.
Not sure I follow… how is Template.markdown.onRendered(...) being called on a helper? Is markdown the helper here, or is markdown the name of the template?
So the way the {{#markdown}} block is implemented is actually a template called markdown. So you can have things run right after markdown is rendered via Template.markdown.onRendered.