Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
Fix wikilink destinations with hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
mdcfe committed Mar 25, 2018
1 parent fad8e6a commit adee456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docute-wikilink.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const re = /\[\[([\w\s]+)\]\]/g; // [[SupaHam]]
const rePiped = /\[\[([\w\s]+)(?:\|)(\w+)\]\]/g; // [[Pineapple|MD678685]]
const rePiped = /\[\[([\w\s]+)(?:\|)([\w\-]+)\]\]/g; // [[Pineapple|MD678685]]

const replacement = `<a class="router-link" href="#/$uri">$text</a>`;

Expand Down

0 comments on commit adee456

Please sign in to comment.