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

Method url

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

Source from the content-addressed store, hash-verified

1166 }
1167 }
1168 url(e) {
1169 let t;
1170 if ((t = this.rules.inline.url.exec(e))) {
1171 let n, s;
1172 if (t[2] === "@") ((n = t[0]), (s = "mailto:" + n));
1173 else {
1174 let i;
1175 do
1176 ((i = t[0]),
1177 (t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? ""));
1178 while (i !== t[0]);
1179 ((n = t[0]), t[1] === "www." ? (s = "http://" + t[0]) : (s = t[0]));
1180 }
1181 return {
1182 type: "link",
1183 raw: t[0],
1184 text: n,
1185 href: s,
1186 tokens: [{ type: "text", raw: n, text: n }],
1187 };
1188 }
1189 }
1190 inlineText(e) {
1191 let t = this.rules.inline.text.exec(e);
1192 if (t) {

Callers 1

inlineTokensMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected