match square brace references

main
Lee Hanken 2022-04-02 13:48:36 +01:00
parent 4cab339c21
commit a5a144a92c
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ module.exports = {
// removes inline links
if (!links) {
data = data.replaceAll(/([^!])\[([^\]]+)\]\([^\)]+\)/g,
data = data.replaceAll(/([^!])\[\[?([^\]]+\]?)\]\([^\)]+\)/g,
(match, prefix, title) => prefix+'*'+title+'*'
);
}