@mnewt @jnordberg 
Why not something simpler like this ?

```
options.highlight = (code, lang) ->
  try 
    # http://highlightjs.readthedocs.org/en/latest/api.html#getlanguage-name
    # return undefined if lang not found
    result = if lang and hljs.getLanguage(lang) then hljs.highlight(lang, code) else hljs.highlightAuto(code)
    return result.value
  catch error
    return code
```