Merge pull request #429 from x4e/develop
Case insensitive language highlighting matching
This commit is contained in:
commit
2c1d3a51af
|
@ -68,7 +68,7 @@
|
||||||
var jss = [hlbaseUri + "highlight.min.js"];
|
var jss = [hlbaseUri + "highlight.min.js"];
|
||||||
// Check what we need to load
|
// Check what we need to load
|
||||||
for (i=0; i < lb.length; i++) {
|
for (i=0; i < lb.length; i++) {
|
||||||
lang = lb[i].className.replace('language-','');
|
lang = lb[i].className.replace('language-','').toLowerCase();
|
||||||
// Support the aliases specified above
|
// Support the aliases specified above
|
||||||
if (aliasmap[lang]) lang = aliasmap[lang];
|
if (aliasmap[lang]) lang = aliasmap[lang];
|
||||||
lurl = hlbaseUri + "highlightjs/" + lang + ".min.js";
|
lurl = hlbaseUri + "highlightjs/" + lang + ".min.js";
|
||||||
|
|
Loading…
Reference in New Issue