match square brace references
							parent
							
								
									4cab339c21
								
							
						
					
					
						commit
						a5a144a92c
					
				|  | @ -82,7 +82,7 @@ module.exports = { | |||
| 
 | ||||
| 		// removes inline links
 | ||||
| 		if (!links) { | ||||
| 			data = data.replaceAll(/([^!])\[([^\]]+)\]\([^\)]+\)/g, | ||||
| 			data = data.replaceAll(/([^!])\[\[?([^\]]+\]?)\]\([^\)]+\)/g, | ||||
| 				(match, prefix, title) => prefix+'*'+title+'*' | ||||
| 			); | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue