nvim-telekasten / telekasten.nvim

A Neovim (lua) plugin for working with a markdown zettelkasten / wiki and mixing it with a journal, based on telescope.nvim
MIT License
1.37k stars 86 forks source link

setting image_link_style = "markdown" not working [BUG] #140

Closed kraxli closed 2 years ago

kraxli commented 2 years ago

Please confirm

Describe the bug and expected behavior In my setting I have setting image_link_style = "markdown" but the link included is [[zettelkasten/my_link]] instead of [](zettelkasten/my_link)

Operating system (please complete the following information):

lambtho12 commented 2 years ago

Is it related to https://github.com/renerocksai/telekasten.nvim/issues/131 maybe?

lambtho12 commented 2 years ago

I can't really reproduce the issue... When I use insert_image_link with a file that is already in img, it works as expected and insert ![](img/myimage.png).

But as in #131, the paste from clipboard stuff does not work.

Could you provide a bit more detail on what you are doing, what function you are calling, etc?

kraxli commented 2 years ago

it is about a link to a file by the function lua require('telekasten').insert_link({ i=true }) which I have mapped to <c-l> in insert mode (but also calling the function plane is not working). Sorry for being imprecise! I can I prove more details and in case which one best?

lambtho12 commented 2 years ago

So I think there is a bit of misunderstanding here. If you would like markdown links for notes as well, there is already issues #139) and discussions about that (#56). Is it indeed a misunderstanding?

kraxli commented 2 years ago

Ah sorry then I was really confused! Many thanks for the clarification!