Skip to content

Commit d053e0f

Browse files
authored
Update codeit-autolinker.js
1 parent e270604 commit d053e0f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/plugins/codeit-autolinker.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,18 @@
4545
};
4646

4747
Prism.hooks.add('before-tokenize', function (env) {
48-
//if (env.lang === 'markdown') return;
48+
//if (env.language === 'markdown') return;
4949
Prism.plugins.autolinker.processGrammar(env.grammar);
5050
});
5151

5252
Prism.hooks.add('wrap', function (env) {
53-
console.log(env);
54-
//if (env.lang === 'markdown') return;
53+
54+
//if (env.language === 'markdown') return;
5555

5656
if (env.type === 'url-reference') {
5757

58+
console.log(env.content.match(url));
59+
5860
let splitContent = env.content.split(' ');
5961

6062
let href = splitContent[splitContent.length - 1];

0 commit comments

Comments
 (0)