-- Custom syntax for markdown filetype -- Last Changed: 2022-10-21 -- Author: Federico Igne -- License: This file is placed in the public domain. --- Conceal links -- -- This overrides the similar commands in $VIMRUNTIME/syntax/markdown.vim -- by adding `conceal{,ends}` to `markdownLink{,Text}` at the end of the -- command. vim.cmd([[ syn region markdownLinkText matchgroup=markdownLinkTextDelimiter start="!\=\[\%(\%(\_[^][]\|\[\_[^][]*\]\)*]\%( \=[[(]\)\)\@=" end="\]\%( \=[[(]\)\@=" nextgroup=markdownLink,markdownId skipwhite contains=@markdownInline,markdownLineStart concealends syn region markdownLink matchgroup=markdownLinkDelimiter start="(" end=")" contains=markdownUrl keepend contained conceal ]])