-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completion and ObsidianFollowLink
not working for heading in chinese
#669
Comments
Hey @hsnotebook, sorry you're having trouble. Could you be more specific about problem 2? I screenshot would help me. |
Hi @epwalsh. Problem 1 can be resolved too by adding chinese character to the |
Hey @epwalsh , Problem 2 is resolved by changing the
to
|
It also doesn't work for headings in Russian and Armenian. So I guess it's any non-latin language. And applying the same hack, but for cyrillic and armenian characters sets everything works for me. The only 2 nitpicks are that The only problem is that this method is not scalable, imagine trying to add every alphabet |
🐛 Describe the bug
I write markdown in chinese, and I link to the heading of other file using
[[文档#标题1]]
.Problem 1:
When I press Enter on the link, it promts for creating new note instead of following the link.
Problem 2:
When I type
[[文档#
, the chinese headings do not show in the completion.I think Problem 1 is caused by
ANCHOR_LINK_PATTERN
in util.lua. I changeutil.ANCHOR_LINK_PATTERN = "#[%w%d][^#]*"
toutil.ANCHOR_LINK_PATTERN = "#[^#]*"
, and it works.I have on idea of Problem 2.
Config
Environment
The text was updated successfully, but these errors were encountered: