-
Notifications
You must be signed in to change notification settings - Fork 37
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
Link to file with multiple level 1 heading show as "ambiguous" #323
Comments
The diagnostics function of marksman can be disabled directly if you doesn't mind the absence of marksman's other link diagnostics prompts. Such as:
|
@Hirschiii this is something that came up a few times. I need to figure out how to make the UX consistent including how to tie this to the completion style, e.g.:
Currently, Marksman uses both file names and level-1 headers to figure out the ID of a document, which I understand is suboptimal. @bearv5 nice workaround! |
I have been using multiple h1s for a long time. However, that created a problem. Thus, I still could not adopt the practice of linking to only one h1. |
I'm also in the club of using multiple level 1 headings in a markdown document. I've set my config to
but I'm still getting "Ambiguous link to document" for any link to a file with more than one h1. Am I misunderstanding this, or with "file-stem" a vanilla link such as |
@wardw I'm planning to make the
And then H1s will be treated like regular headings (it will also affect the default completion style for wiki links). |
I think this should be addressed in 2024-12-04. Please, report if something doesn't work as expected. |
I have the practise to set the title in the yaml-header and use multiple level one headings in the document. I pretty sure this is the issue, when I reduce the number of level one headings, the warning goes away.
I did not find any setting like offsetting the heading by one, or even ignore this warning.
Is there a way to remove this warning?
Thank you very much, except of this I really do enjoy using this LSP
The text was updated successfully, but these errors were encountered: