fix replacement of links

main
Lee Hanken 2022-04-03 11:37:46 +01:00
parent 2aabfc3c20
commit cb6689e175
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ module.exports = {
// remove inline links and refs
if (!links) {
data = data.replaceAll(/\[\[?([^\]]+\]?)\]\([^\)]+\)/g, '$2');
data = data.replaceAll(/\[\[?([^\]]+\]?)\]\([^\)]+\)/g, '$1');
data = data.replaceAll(/[\\\[]+([0-9]+)[\\\]]+/g, '[$1]');
}