orbikm / mkdocs-ezlinks-plugin

Plugin for mkdocs which enables easier linking between pages
MIT License
34 stars 17 forks source link

Add support for reference link definitions #31

Open ifplusor opened 2 years ago

ifplusor commented 2 years ago

I am a user of Foam. When I write note with Foam, it generate link reference definitions for wikilinks, but ezlinks is not aware of those. I think link reference definitions are helpful for generate links.

ifplusor commented 2 years ago

The Link Reference Definitions of Foam

orbikm commented 2 years ago

Hello @ifplusor,

Apologies for the delay, work is always crazy this time of year. I have taken a look at your request, and have published a new release (v0.1.13), which includes support for Reference Links.

You must enable it by adding: reference_links: true to your mkdocs.yml configuration (see the README). Please let me know if this works for you, as I am only going based on my own trivial test cases for this feature.

Thanks for the feature request, and thank you for choosing to use EzLinks!

ifplusor commented 2 years ago

@orbikm Thanks for your amazing work. But I think the right way for use reference link definitions is work with link or wikilink, and I make a demo about this in https://github.com/ifplusor/mkdocs-ezlinks-plugin/commit/cc175f24a5675cdd777783d56a54d81447ea313d

orbikm commented 2 years ago

Interesting. Thanks for the clarification and the accompanying proof-of-concept. I'll take a look at your change when I can and will see what I can do. Thanks!