Skip to content

Commit 301e431

Browse files
committed
fix(renderers, markdown, tables): Fixed incorrect rendering of Obsidian-style links
Closes #507
1 parent 576e50f commit 301e431

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/markview/renderers/markdown/tostring.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ md_str.internal = function (match)
307307
config.padding_left or "",
308308

309309
config.icon or "",
310-
md_str.tostring(md_str.buffer, removed, false),
310+
-- FIX(#507): Use `alias` when available
311+
-- Aliases don't support markdown syntax **yet**.
312+
alias ~= nil and alias or md_str.tostring(md_str.buffer, removed, false),
311313

312314
config.padding_right or "",
313315
config.corner_right or "",

0 commit comments

Comments
 (0)