vim-markdown icon indicating copy to clipboard operation
vim-markdown copied to clipboard

Add support for wiki links

Open bouk opened this issue 5 years ago • 2 comments

This adds support for wiki-style [[wikilinks]]

Fixes #97

bouk avatar Feb 28 '20 13:02 bouk

Additionally support for pipe syntax for link description would be a nice addition. An option to switch the description and link order can be provided since some implementations (like Creole, Github Wiki) use the reverse order.

tejasvi avatar Feb 04 '21 16:02 tejasvi

Unfortunately, if you have set conceallevel = 2 (which I prefer to just syntax highlighting), those wiki links completely disappear.

execute 'syn region mkdWikiLink matchgroup=mkdDelimiter start="\[\["   end="\]\]" contained oneline' . s:concealends

fixes this, (notice concealends instead of conceal) fixes this, but I have no idea what I'm doing.

Perhaps it also makes sense to give wikilinks another highlight group as they tend to be "internal" links. I have chosen "Identifier" for now.

See my branch for those changes: https://github.com/geier/vim-markdown/tree/pr/478

geier avatar May 30 '22 18:05 geier