diff --git a/autoload/emmet.vim b/autoload/emmet.vim index 8cc13c5..799e8fc 100644 --- a/autoload/emmet.vim +++ b/autoload/emmet.vim @@ -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('') let a.attr.href = url