dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.75k stars 259 forks source link

When aliasing links to headings it doesn't use the alias in the preview #3686

Open wiktoriavh opened 2 years ago

wiktoriavh commented 2 years ago

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

Describe the bug

When writing markdown like this one, the link to the heading does not alias in the preview.

My favourite cat is the [[Tabby|#tabby-cat]]

## Tabby Cat

To Reproduce

Link to a heading like so:

My favourite cat is the [[Tabby|#tabby-cat]]

## Tabby Cat

Expected behavior

I expect the alias in the preview, and not the note name.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information)

Additional context

Was mentioned in the New User Tuesday.

Dendron Log file

Please attach the output of > Dendron:Dev: Open Logs here

Harshita-mindfire commented 2 years ago

Thanks @Braweria for reporting the bug. I can reproduce it. We will update here when this gets fixed.

Also, can you see if this works?

My favourite cat is the [[Tabby | #tabby-cat]]
## Tabby Cat
wiktoriavh commented 2 years ago

Hi @Harshita-mindfire , your example works.