javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
481 stars 29 forks source link

fix: expand local links for obsidian's hover-preview (closes #361) #375

Closed Sirs0ri closed 1 year ago

Sirs0ri commented 1 year ago

This adds the current note's path to a marker's link, if the link would otherwise start with a #, ie if it links to an anchor (paragraph or ^anchor) in the local file.

The popup generated by leaflet is not affected, only the hover-preview showing the linked note.

closes #361