Skip to content

Commit 67c6d0a

Browse files
committed
Allows markdown links to be followed
1 parent 79df411 commit 67c6d0a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

taskwiki/main.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,14 @@ def task_info_or_vimwiki_follow_link():
271271
']]' in line,
272272
column >= line.find('[['),
273273
column <= line.find(']]') + 1
274+
]) or all([
275+
'[' in line,
276+
'](' in line,
277+
')' in line,
278+
line.find('[') < line.find(']('),
279+
line.find('](') < line.find(')'),
280+
column >= line.find('['),
281+
column <= line.find(')') + 1
274282
])
275283

276284
if inside_vimwiki_link:

0 commit comments

Comments
 (0)