Skip to content

Commit 90d188a

Browse files
authored
Provide alias to body function (#350)
1 parent 98a3b7d commit 90d188a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: lua/render-markdown/init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ local M = {}
8383
---@field public start_col integer
8484
---@field public end_col integer
8585
---@field public destination string
86+
---@field public alias? string
8687

8788
---@class (exact) render.md.UserWikiLink
8889
---@field public icon? string

Diff for: lua/render-markdown/render/shortcut.lua

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function Render:wiki_link()
106106
start_col = self.node.start_col - 1,
107107
end_col = self.node.end_col + 1,
108108
destination = sections[1],
109+
alias = sections[2],
109110
}
110111

111112
-- Hide opening & closing outer brackets

0 commit comments

Comments
 (0)