Feel-ix-343 / markdown-oxide

PKM for the LSP
https://oxide.md
Apache License 2.0
1.03k stars 17 forks source link

extension added at the end of references and headers instead of at the end of filename #168

Closed ertwro closed 2 months ago

ertwro commented 2 months ago

Currently there are extensions added as an option for compatibility with wikilinks and other apps that use the extension at the end of the link,:

include_md_extension_md_link = true
include_md_extension_wikilink = true

This produces something like [Nicturia](Uro_definitions.md) which works ✅.

The problem is that when the reference to a header is autocompleted by cmp, it adds the extension at the end of the reference instead of at the end of name of the file. This is the current behavior:

[❌] [Nicturia](Uro_definitions#Nicturia.md)

Instead of like this, that would actually work:

[✅] [Nicturia](Uro_definitions.md#Nicturia)
Feel-ix-343 commented 2 months ago

Hmmmm yea that makes sense... thank you!!

This should be fixed in v1 when I get to it there. I am no longer developing v0.

Thank you for reporting!