supress anchor links as well as http links

main
Lee Hanken 2022-04-02 13:40:42 +01:00
parent 91044556da
commit 4cab339c21
1 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ module.exports = {
return '\n\n'+title+'\n'+'-'.repeat(title.length)+'\n'
}
}
]
},
{
@ -81,7 +82,7 @@ module.exports = {
// removes inline links
if (!links) {
data = data.replaceAll(/([^!])\[([^\]]+)\]\(http[^\)]+\)/g,
data = data.replaceAll(/([^!])\[([^\]]+)\]\([^\)]+\)/g,
(match, prefix, title) => prefix+'*'+title+'*'
);
}