Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fixes for issue #21 and issue #23 #24

Open
wants to merge 2 commits into from

2 participants

This page is out of date. Refresh to see the latest.
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/codex/project.js
View
7 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);
Something went wrong with that request. Please try again.