MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / autolink

Method autolink

web/marked.min.js:1150–1167  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1148 };
1149 }
1150 autolink(e) {
1151 let t = this.rules.inline.autolink.exec(e);
1152 if (t) {
1153 let n, s;
1154 return (
1155 t[2] === "@"
1156 ? ((n = t[1]), (s = "mailto:" + n))
1157 : ((n = t[1]), (s = n)),
1158 {
1159 type: "link",
1160 raw: t[0],
1161 text: n,
1162 href: s,
1163 tokens: [{ type: "text", raw: n, text: n }],
1164 }
1165 );
1166 }
1167 }
1168 url(e) {
1169 let t;
1170 if ((t = this.rules.inline.url.exec(e))) {

Callers 1

inlineTokensMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected