mkdocs-ezlinks-plugin icon indicating copy to clipboard operation
mkdocs-ezlinks-plugin copied to clipboard

Add support for reference link definitions

Open ifplusor opened this issue 3 years ago • 4 comments

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 avatar Nov 10 '21 04:11 ifplusor

The Link Reference Definitions of Foam

ifplusor avatar Nov 10 '21 04:11 ifplusor

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!

orbikm avatar Nov 22 '21 23:11 orbikm

@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

ifplusor avatar Nov 23 '21 03:11 ifplusor

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!

orbikm avatar Nov 23 '21 04:11 orbikm