mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
Merge branch 'master' of https://github.com/mattn/emmet-vim
This commit is contained in:
@@ -869,6 +869,8 @@ function! emmet#anchorizeURL(flag) abort
|
||||
let rtype = emmet#lang#type(type)
|
||||
if &filetype ==# 'markdown'
|
||||
let expand = printf('[%s](%s)', substitute(title, '[\[\]]', '\\&', 'g'), url)
|
||||
elseif &filetype ==# 'rst'
|
||||
let expand = printf('`%s <%s>`_', substitute(title, '[\[\]]', '\\&', 'g'), url)
|
||||
elseif a:flag ==# 0
|
||||
let a = emmet#lang#html#parseTag('<a>')
|
||||
let a.attr.href = url
|
||||
|
||||
Reference in New Issue
Block a user