mirror of
https://github.com/Luzifer/wiki.git
synced 2024-11-08 14:50:11 +00:00
Fix: Replace all internal links, not just one
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
87f7c52b5b
commit
59c047ce58
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ export default {
|
|||
|
||||
prerender(mdtext) {
|
||||
// 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
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue