Browse Source

Fix language detection with filename

pull/509/head
gott 7 years ago
parent
commit
859f24db0d
  1. 2
      lib/renderer.js

2
lib/renderer.js

@ -43,7 +43,7 @@ default_rules.fence = function (tokens, idx, options, env, slf) {
highlighted, i, tmpAttrs, tmpToken;
if (info) {
langName = info.split(/\s+/g)[0];
langName = info.split(/\s+/g)[0].split(':')[0];
}
if (options.highlight) {

Loading…
Cancel
Save