1
0
Fork 0
mirror of https://github.com/Luzifer/wiki.git synced 2024-12-20 10:31:18 +00:00

Fix: Replace all internal links, not just one

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-08-15 22:36:43 +02:00
parent 87f7c52b5b
commit 59c047ce58
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -79,7 +79,7 @@ export default {
prerender(mdtext) { prerender(mdtext) {
// replace [[Internal]] links // replace [[Internal]] links
mdtext = mdtext.replace(/\[\[([^\]]+)\]\]/, '<a class="intLink" data-page="$1" href="$1">$1</a>') mdtext = mdtext.replace(new RegExp(/\[\[([^\]]+)\]\]/, 'g'), '<a class="intLink" data-page="$1" href="$1">$1</a>')
return mdtext return mdtext
}, },