@timaschew/markdown-it-vuepress-code-snippet-enhanced
Version:
Easily import code snippets for Vuepress
16 lines (12 loc) • 403 B
HTML
<pre class="language-js{4,17}"><code class="language-js{4,17}">module.exports = function autolink(state, silent) {
var tail, linkMatch, emailMatch, url, fullUrl, token,
pos = state.pos;
if (state.src.charCodeAt(pos) !== 0x3C /* < */ ) {
return false;
}
tail = state.src.slice(pos);
if (tail.indexOf('>') < 0) {
return false;
}
}
</code></pre>