Permalink
Browse files

[minor fix] fixes js not being accepted

* adds `md` alias
  • Loading branch information...
1 parent 9f1e15d commit f18ee61f73045515d2cd5a10d0a57e65d20acd03 @dscape dscape committed Dec 12, 2012
Showing with 5 additions and 2 deletions.
  1. +4 −1 lib/blacksmith/common.js
  2. +1 −1 test/common-test.js
@@ -31,12 +31,15 @@ common.extensions = {
// Available highlight languages
//
common.availableLanguages = Object.keys(hljs.LANGUAGES);
-
+common.availableLanguages.push('js');
+common.availableLanguages.push('md');
//
// Default settings for `marked`.
// TODO: Make this configurable.
//
hljs.LANGUAGES.js = hljs.LANGUAGES.javascript;
+hljs.LANGUAGES.md = hljs.LANGUAGES.markdown;
+
common.marked = {
gfm: true,
pedantic: false,
View
@@ -67,7 +67,7 @@ vows.describe('blacksmith/common').addBatch({
"with `md` language": {
topic: function () {
try {
- var code = common.marked.highlight('# Test', 'md');
+ var code = common.marked.highlight('# Test', 'mdown');
this.callback(null, code);
}
catch (exc) {

0 comments on commit f18ee61

Please sign in to comment.