remove italics on links
parent
805bcb92a2
commit
d13585197e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue