From: Adam Dullage Date: Mon, 17 Feb 2025 13:11:02 +0000 (+0000) Subject: #285 Fix issue with wikilink parsing X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=154ee3997b726d0e5fa3ddc51d8e7a472a70e2a4;p=flatnotes.git #285 Fix issue with wikilink parsing --- diff --git a/client/components/toastui/baseOptions.js b/client/components/toastui/baseOptions.js index f156115..c4c96af 100644 --- a/client/components/toastui/baseOptions.js +++ b/client/components/toastui/baseOptions.js @@ -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];