aboutsummaryrefslogtreecommitdiff
path: root/scripts/text_utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/text_utils.lua')
-rw-r--r--scripts/text_utils.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/text_utils.lua b/scripts/text_utils.lua
index 75b3bfedd5..3569f5a5af 100644
--- 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