Closed Sirs0ri closed 1 year ago
@Sirs0ri I cannot recreate this. Can you make sure you are on the latest leaflet version (and check that your obsidian installer version is 1.1.9) and try again? If its still not working, are you able to get an error code from the developers console?
@sigrunixia I just tried, and yes, the problem still exists (obsidian v1.1.16, installer 1.1.9, obsidian-leaflet 5.5.3)
I just tried in a completely new vault, and: 1) added the leaflet plugin, 2) turned on the "Display Note Preview" setting for Obsidian Leaflet, and 3) created the note "MyNote.md" mentioned above. 4) Clicking the popup links to the correct point in the note, but the note Preview points to the wrong place.
I'll attach the zipped vault below, hoping this helps: obsidian-test.zip
(The vault also includes an example for the problem reported in #366)
Problem Description
Obsidian has the feature where you can leave out the current note's title to link to headings /
^
-anchors inside the current note, this functionality is currently missing from obsidian-leaflet.Since Obsidian's autocomplete function works inside code blocks, I can type
[[#
inside of a leaflet codeblock, and I'll get the current file's headings as suggestion, e.g.[[#Main Heading]]
for the example below. The marker created from that link will have a popup with the message"#Main Heading" is not created yet. Click to create.
Example Code:
MyNote.md
leaflet embed inside MyNote.md:
Additional Info
Obsidian Version: 1.1.16 Leaflet Version: 5.2.6
Correctly created marker![correctly created marker](https://user-images.githubusercontent.com/6765536/229511275-79153903-2680-4364-a2c5-58e9d54ea855.png)
Marker with broken link![marker with broken link](https://user-images.githubusercontent.com/6765536/229511315-47fadb7e-1055-4323-ab4c-6cccf47398c0.png)