mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
fix(docs): do not treat indexes as short_link
This commit is contained in:
parent
93347a67bf
commit
cc26cf0400
@ -207,6 +207,8 @@ local function render_md(node, start_indent, indent, text_width, level, is_list)
|
||||
elseif ntype == 'shortcut_link' then
|
||||
if node[1].text:find('^<.*>$') then
|
||||
parts[#parts + 1] = node[1].text
|
||||
elseif node[1].text:find('^%d+$') then
|
||||
vim.list_extend(parts, { '[', node[1].text, ']' })
|
||||
else
|
||||
vim.list_extend(parts, { '|', node[1].text, '|' })
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user