Skip to content

Commit 88ba155

Browse files
committed
Update codeit-autolinker.js
1 parent 481b7b7 commit 88ba155

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/plugins/codeit-autolinker.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@
5858

5959
Prism.hooks.add('wrap', function (env) {
6060

61-
//if (env.language === 'markdown') return;
61+
// disabled for markdown because regex dosen't cover all edge cases
62+
if (env.language === 'markdown') return;
6263

63-
/*if (env.language === 'markdown' &&
64+
/*
65+
if (env.language === 'markdown' &&
6466
env.type === 'url-reference') {
6567
6668
let matches = env.content.match(url);
@@ -73,7 +75,8 @@
7375
7476
}
7577
76-
}*/
78+
}
79+
*/
7780

7881
if (/-link$/.test(env.type)) {
7982
env.tag = 'a';

0 commit comments

Comments
 (0)