We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e270604 commit d053e0fCopy full SHA for d053e0f
lib/plugins/codeit-autolinker.js
@@ -45,16 +45,18 @@
45
};
46
47
Prism.hooks.add('before-tokenize', function (env) {
48
- //if (env.lang === 'markdown') return;
+ //if (env.language === 'markdown') return;
49
Prism.plugins.autolinker.processGrammar(env.grammar);
50
});
51
52
Prism.hooks.add('wrap', function (env) {
53
- console.log(env);
54
+
55
56
if (env.type === 'url-reference') {
57
58
+ console.log(env.content.match(url));
59
60
let splitContent = env.content.split(' ');
61
62
let href = splitContent[splitContent.length - 1];
0 commit comments