neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit cc26cf0400286990d553bee993c9b113ca4cbc46
parent 93347a67bf913c72ab2c1ba0aa4b26cc4ba6d1a8
Author: Yi Ming <ofseed@foxmail.com>
Date:   Tue,  6 Aug 2024 21:25:31 +0800

fix(docs): do not treat indexes as `short_link`

Diffstat:
Mscripts/text_utils.lua | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/text_utils.lua b/scripts/text_utils.lua @@ -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