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.42k stars 91 forks source link

[FR] Support reference-style markdown links #295

Open TC72 opened 10 months ago

TC72 commented 10 months ago

Long story short Ulysses on iPhone has started screwing with all the links in my Telekasten notes and converting them to reference-style links.

Telekasten doesn't support this for follow link, neither the reference or the definition of the link. This is valid markdown so it'd be good if Telekasten could support it. Daring Fireball Markdown Syntax Documentation

Example of what's happening:

[renerocksaitelekasten.nvim A Neovim (lua) plugin for working with a markdown zettelkasten  wiki and mixing it with a journal, based on telescope.nvim](https://github.com/renerocksai/telekasten.nvim)

Becomes:

[renerocksaitelekasten.nvim A Neovim (lua) plugin for working with a markdown zettelkasten  wiki and mixing it with a journal, based on telescope.nvim][1]

[1]:   https://github.com/renerocksai/telekasten.nvim

It would be nice if Telekasten could follow URLs even if they aren't in the correct markdown format. This would make it easier to follow the link and fetch a correctly formatted markdown version. I know gx can do this but having to decide how to follow a link can break flow. Even better would be a tool to convert a basic URL to markdown, it's need some code to fetch the basic HTML of a page and rip the out of it.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/lambtho12"><img src="https://avatars.githubusercontent.com/u/26206736?v=4" />lambtho12</a> commented <strong> 10 months ago</strong> </div> <div class="markdown-body"> <p><del>Isn't it a duplicate of #126, and also partially discussed in #294 ?</del></p> <p>I read it a bit too fast. Indeed, the reference-style is not supported. I think this should be left for when basic markdown links are supported to prevent clashing features and an overly complex implementation.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>