secure-77 / Perlite

A web-based markdown viewer optimized for Obsidian

Home Page:https://perlite.secure77.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support same document heading links

lennartbrandin opened this issue · comments

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

commented

fixed in release 1.5.4

commented

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

commented

(hopefully) finally fixed in 1.5.5

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

commented

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

commented

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

commented

please try again with the 1.5.6 release 🙏

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

commented

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

commented

fixed in 1.5.7