Update cli.js
This commit is contained in:
parent
203027b449
commit
38c2fe90db
|
|
@ -221,6 +221,7 @@ async function run() {
|
|||
}
|
||||
if (!node.text)
|
||||
return;
|
||||
// Match links in a lax way (.+), so they can include spaces, backticks etc.
|
||||
for (const [, mdLinkName, mdLink] of node.text.matchAll(/\[(.+)\]\((.*?)\)/g)) {
|
||||
const isExternal = mdLink.startsWith('http://') || mdLink.startsWith('https://');
|
||||
if (isExternal)
|
||||
|
|
|
|||
Loading…
Reference in a new issue