Doc generator fixes

Fixes HTML and custom languages code blocks in docs.

/cc @nickjs @kristianpd