-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates mind map internal link rewriter to work with MD links as well…
… as wikilinks
- Loading branch information
1 parent
d76b7e1
commit 2988e1f
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export const MM_VIEW_TYPE = 'mindmap'; | ||
export const MD_VIEW_TYPE = 'markdown'; | ||
export const INTERNAL_LINK_REGEX = /\[\[(.*)\]\]/g; | ||
|
||
// https://regex101.com/r/gw85cc/2 | ||
export const INTERNAL_LINK_REGEX = /\[\[(?<wikitext>.*)\]\]|<a href="(?<mdpath>.*)">(?<mdtext>.*)<\/a>/gim; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters