We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bcf788 commit 61181b2Copy full SHA for 61181b2
obsidian_interactive_graph/plugin.py
@@ -55,7 +55,7 @@ def collect_pages(self, nav: MkDocsNav, config: MkDocsConfig):
55
56
def parse_markdown(self, markdown: str, page: MkDocsPage):
57
# wikilinks: [[Link#Anchor|Custom Text]], just the link is needed
58
- WIKI_PATTERN = re.compile(r"(?<!\!)\[\[(?P<wikilink>[^\|^\]^\#]{1,})(?:.*)\]\]")
+ WIKI_PATTERN = re.compile(r"(?<!\!)\[\[(?P<wikilink>[^\|^\]^\#]{1,})(?:.*?)\]\]")
59
for match in re.finditer(WIKI_PATTERN, markdown):
60
wikilink = match.group('wikilink')
61
0 commit comments