secure-77 / Perlite

A web-based markdown viewer optimized for Obsidian
https://perlite.secure77.de/
MIT License
1.1k stars 98 forks source link

Support same document heading links #74

Closed lennartbrandin closed 1 year ago

lennartbrandin commented 1 year ago

Feature / Issue

Obsidian supports same document heading references using Wiki Links

[[#Solution]] 

Instead having the word "Solution" linking to https://perlite/?link=/github/issues/samedoclinks#Solution

It displays ">#Solution (The "> being the link and the #Solution a codeblock) linking to: https://perlite/?link=/github/issues/<a href="#Solution

Solution

Display the correct word linking to the correct heading

Whats displayed

image

secure-77 commented 1 year ago

fixed in release 1.5.4

secure-77 commented 1 year ago

Need to check this again and provide an example in the demo files

secure-77 commented 1 year ago

(hopefully) finally fixed in 1.5.5

lennartbrandin commented 1 year ago

It does not seem to work for me on 1.5.5 Behavior is as described before, i've also noticed that links inside code blocks are replaced, not sure if this is intended.

Perlite: image

Obsidian: image

secure-77 commented 1 year ago

for me, this is working, you can take a look at the demo page: https://perlite.secure77.de/?link=%2FDemo%20Documents%2Fmarkdown-sample

image

image

however, can you provide me your source md file?

the problem with obsidian links in code blocks is probably a different issue

lennartbrandin commented 1 year ago

Source.md

secure-77 commented 1 year ago

can confirm the issue, in my test file I have a whitespace behind the link, only then it is working... I will try to fix this and provide a new release

image

secure-77 commented 1 year ago

please try again with the 1.5.6 release 🙏

lennartbrandin commented 1 year ago

image The first link is now as imagined, the 2nd one links to the root of the containing folder. ([[#Test|Mit Title]])

secure-77 commented 1 year ago

this is implemented on the dev branche, will merge it in the next days to main

secure-77 commented 1 year ago

fixed in 1.5.7