remove italics on links

main
Lee Hanken 2022-04-02 14:06:27 +01:00
parent 805bcb92a2
commit d13585197e
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ module.exports = {
// removes inline links and refs
if (!links) {
data = data.replaceAll(/([^!])\[\[?([^\]]+\]?)\]\([^\)]+\)/g, '$1*$2*');
data = data.replaceAll(/\*\\\[([^\\]+)\\\]\*/g, '[$1]');
data = data.replaceAll(/([^!])\[\[?([^\]]+\]?)\]\([^\)]+\)/g, '$1$2');
data = data.replaceAll(/\\\[([^\\]+)\\\]/g, '[$1]');
}
return data;