Skip to content

Commit

Permalink
Fixed anchor appearing instead of header
Browse files Browse the repository at this point in the history
  • Loading branch information
BeltranLeo committed Sep 28, 2024
1 parent 6956ae4 commit e66ba31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/obsidian/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ end
util.wiki_link_name_only = function(opts)
local header_or_block = ""
if opts.anchor then
header_or_block = opts.anchor.anchor
header_or_block = string.format("#%s", opts.anchor.header)
elseif opts.block then
header_or_block = string.format("#%s", opts.block.id)
end
Expand Down

0 comments on commit e66ba31

Please sign in to comment.