Feature: vimwiki#base#linkify() with markdown syntax setting #994

This commit is contained in:
Tinmarino
2021-06-09 09:26:52 -04:00
parent 573e3d1952
commit 0181009dba
2 changed files with 60 additions and 35 deletions
+20
View File
@@ -4,6 +4,26 @@
# in OS windows, linux
# Seems easy but tests are reaaly needed here
# Linkify function {{{1
# Issue #994
####################
Given vimwiki (abc def ghi jkl):
https://github.com/vimwiki/vimwiki
Do(call linkify):
:call vimwiki#base#linkify()\<CR>
Expect():
[[https://github.com/vimwiki/vimwiki|GitHub - vimwiki/vimwiki: Personal Wiki for Vim]]
Do(md: call linkify):
:call SetSyntax('markdown')\<CR>
:call vimwiki#base#linkify()\<CR>
Expect():
[GitHub - vimwiki/vimwiki: Personal Wiki for Vim](https://github.com/vimwiki/vimwiki)
# Link Normalisation {{{1
# And configuration