Skip to content

Commit

Permalink
no-render -> no-hl
Browse files Browse the repository at this point in the history
  • Loading branch information
arikon committed Oct 12, 2012
1 parent 41d04c6 commit dc95d7e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/extensions/hl/index.js
@@ -1,27 +1,21 @@
var HL_DEFAULT = 'no-hl',
HL = process.env.SHMAKOWIKI_HL || HL_DEFAULT;

if (!~['server', 'client', 'ohl', 'no-render'].indexOf(HL)) {
if (!~['server', 'client', 'ohl', 'no-hl'].indexOf(HL)) {
HL = HL_DEFAULT;
}

var ext;
switch (HL) {

case 'server':
ext = require('./hljs-server');
break;

case 'client':
ext = require('./hljs-client');
ext = require('./hljs-' + HL);
break;

case 'ohl':
ext = require('./ohl');
break;

case 'no-render':
ext = require('./no-hl');
case 'no-hl':
ext = require('./' + HL);
break;

}
Expand Down

0 comments on commit dc95d7e

Please sign in to comment.