-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
[SUPPORT] Cannot link to certain heading #3181
Comments
Can you please provide an example note and some markdown where you linked to it? I can't really grasp your issue without more context. |
Here is the actual file I am talking about. Download it, then from any note try to link to heading 10 or 11. |
I guess you are talking about the 10th or 11th heading, not a heading 10 or 11, right? Those are all heading 1. |
Yes, I am talking about 10th and 11th heading.
I don't understand:
|
Look closer, none are shown, it shows heading 2 and 3. Only to make sure we are talking from the same thing: https://www.w3schools.com/html/html_headings.asp
It's not about the Markdown specs, it's about that you are not supposed to have more than one heading 1 in a document. |
Just do a regular expression replace of |
Phew, nothing is lost, as it were. BTW, what is the meaning of the |
In regular expressions, a I looked at the link dialog code and the code of the linking (that also needs to support that) and it would be possible to support heading 1, but like previously only those headings starting with '#', so still no |
With plain text files, nothing is lost most of the time... You can search/replace a lot. You could even ask your ChatGPT to manipulate the text for you. 😉 |
Signed-off-by: Patrizio Bekerle <[email protected]>
24.12.5
|
There now is a new release, could you please test it and report if it works for you? |
I am using the Flatpak version, as that is what there is in my system package manager. I checked on your Flathub page but you have not pushed this version to Flathub yet. BTW, in your opinion, is the Flatpak version OK to use or would you recommend something else? |
The flathub package was just built. Yes, you can use it. |
Yes, that works fine. Many thanks for amending the app this way. |
I think I need to take that feature back, it causes comments in code blocks also to be detected as headings! |
So, why does an app like Obsidian not have that problem? |
Was that a serious question or a troll question? |
I am not in the habit of trolling, so yes, it is a serious question. Remember, I am the one who asked for the feature, you are the one who implemented it, now you are the one who is retracting it. I am surprised you did not realize comments in code blocks would be detected as headings. Code blocks can also be used in Obsidian, yet H1 heading links don't cause that problem, hence my question. If, however, the question seems stupid to you, don't bother to answer. |
It's a different application with a different code base. |
…t to get list of headings Signed-off-by: Patrizio Bekerle <[email protected]>
…t to jump to headings Signed-off-by: Patrizio Bekerle <[email protected]>
Signed-off-by: Patrizio Bekerle <[email protected]>
Signed-off-by: Patrizio Bekerle <[email protected]>
25.2.1
There now is a new release, could you please test it and report if it works for you? |
Signed-off-by: Patrizio Bekerle <[email protected]>
Yes, that works fine, Patrizio. Thank you. |
Great, thank you for testing! |
You're welcome, you deserve it 😀 |
Question
I have a note with 11 headings, numbered from 1 to 11, though there are subheadings too.
In the outline pane all headings are shown.
However, when I want to link to heading 10 or 11 from another note, the last heading shown in the dropdown list when I press
CTRL+Shift+L
is heading 9.2.1.Even when I write out the syntax manually, the link does not work.
Output from the debug section in the settings dialog
Expand
Relevant log output in the Log panel
You have to enable the Log panel in the Windows menu!
I did but I don't see it.
Alternatively you can also turn on a log file in the settings.
I did. I it a very big file, so here is what I think may be relevant:
Expand
The text was updated successfully, but these errors were encountered: