diff --git a/lib/codex/project.js b/lib/codex/project.js index 7039655..293cd67 100644 --- a/lib/codex/project.js +++ b/lib/codex/project.js @@ -47,8 +47,11 @@ Project.prototype.parseMarkdown = function (text) { if (token.type == 'code') { var lang = token.lang || 'javascript'; if (lang == 'js') lang = 'javascript'; - token.text = highlight.highlight(lang, token.text).value; - token.escaped = true; + if (lang == 'html') lang = 'xml'; + if (highlight.LANGUAGES.hasOwnProperty(lang)) { + token.text = highlight.highlight(lang, token.text).value; + token.escaped = true; + } } } text = marked.parser(tokens);