Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for wiki links #478

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add support for wiki links #478

wants to merge 1 commit into from

Conversation

bouk
Copy link

@bouk bouk commented Feb 28, 2020

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

Fixes #97

@tejasvi
Copy link

tejasvi commented Feb 4, 2021

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.

@geier
Copy link

geier commented May 30, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add key mapping to jump to linked file
3 participants