From 59c047ce58561d243a7d9e02bee24dc7c1bd3a4f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 15 Aug 2019 22:36:43 +0200 Subject: [PATCH] Fix: Replace all internal links, not just one Signed-off-by: Knut Ahlers --- src/view.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view.vue b/src/view.vue index 381d8d6..5cf9310 100644 --- a/src/view.vue +++ b/src/view.vue @@ -79,7 +79,7 @@ export default { prerender(mdtext) { // replace [[Internal]] links - mdtext = mdtext.replace(/\[\[([^\]]+)\]\]/, '$1') + mdtext = mdtext.replace(new RegExp(/\[\[([^\]]+)\]\]/, 'g'), '$1') return mdtext },