(e)
| 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))) { |