(url, type, index)
| 94 | |
| 95 | const refs = []; |
| 96 | const push = (url, type, index) => { |
| 97 | if (typeof url === 'string' && url.length > 0) refs.push({ url, type, index }); |
| 98 | }; |
| 99 | |
| 100 | const imgRe = /!\[[^\]]*\]\(\s*<?([^)\s>]+)>?(?:\s+"[^"]*")?\s*\)/g; |
| 101 | const linkRe = /(^|[^!])\[(?:[^\]]*?)\]\(\s*<?([^)\s>]+)>?(?:\s+"[^"]*")?\s*\)/g; |