#285 Fix issue with wikilink parsing
authorAdam Dullage <redacted>
Mon, 17 Feb 2025 13:11:02 +0000 (13:11 +0000)
committerAdam Dullage <redacted>
Mon, 17 Feb 2025 13:11:02 +0000 (13:11 +0000)
client/components/toastui/baseOptions.js

index f156115f456b54987e8260e13a2ebe03daace958..c4c96af7c9593a669f71f02223a4f4dfb9ca12f9 100644 (file)
@@ -75,7 +75,7 @@ export function parseUrlLink(source) {
 // end of raw toast-ui source
 
 function parseWikiLink(source) {
-  const matched = source.matchAll(/\[\[(.*)\]\]/g);
+  const matched = source.matchAll(/\[\[(.*?)\]\]/g);
   if (matched) {
     return Array.from(matched).map((match) => {
       const text = match[1];
git clone https://git.99rst.org/PROJECT