You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I make link which has heading, it is ok to add english heading like [test](ν μ€νΈ/ν μ€νΈ2.md#test)
If the heading has non-english character, the link name shows the heading name properly but link url doesn't.
It show '--' like this
I find that the result doesn't have url if the heading is non-english.
---@paramresobsidian.ResolveLinkResultlocalfunctionfollow_link(res)
ifres.url~=nilthen-- if heading is non-english, res.url == nilifself.opts.follow_url_func~=nilthenself.opts.follow_url_func(res.url)
elselog.warn"This looks like a URL. You can customize the behavior of URLs with the 'follow_url_func' option."end
Unfortunately, I cannot find where the follow_link_async() function is called and what character is added to results
Could you fix this?
Config
localobsidian=require('obsidian')
obsidian.setup({
workspaces= { -- this directory must exist
{
name='Personal',
path=paths.obsidian.personal
},
},
mappings= {}, -- disable default keymappingnew_notes_location='current_dir',
preferred_link_style='markdown',
follow_url_func=function (url) -- command for follow urlvim.fn.system('start ' ..url)
end,
attachments= {
confirm_img_paste=true, -- show confirm message when pasteimg_name_func=function () -- download clipboard image to filename folderreturnstring.format("%s\\%s-", vim.fn.expand('%:p:r'), os.date('%y%m%d'))
end,
img_text_func=function (client, path)
path=path:relative_to(vim.fn.expand('%:p:h'))
returnstring.format("![%s](%s)", path.name, path)
end
},
ui= {
enable=false, -- use markdown.nvim as renderercheckboxes= {
[""] = { char="ξ", hl_group='ObsidianTodo'},
["x"] = { char="σ°²", hl_group='ObsidianDone'},
["-"] = { char="σ±"},
}
},
note_id_func=function (title) -- set note id automatically when :ObsidianNewiftitle==nilthentitle='NewFile'elsetitle=title:gsub('','_')
endreturntitleend,
})
Environment
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info
π Describe the bug
When I make link which has heading, it is ok to add english heading like
[test](ν μ€νΈ/ν μ€νΈ2.md#test)
If the heading has non-english character, the link name shows the heading name properly but link url doesn't.
It show '--' like this
I find that the result doesn't have
url
if the heading is non-english.Unfortunately, I cannot find where the
follow_link_async()
function is called and what character is added toresults
Could you fix this?
Config
Environment
The text was updated successfully, but these errors were encountered: