fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
162 stars 14 forks source link

Integration of AutoID for page links? #119

Closed hansgohr closed 3 years ago

hansgohr commented 3 years ago

Hi there,

do you see any chance of integrating a support for bnomei's AutoID plugin for internal page links?

I thought about kirbytext hooks but it feels like a direct integration would be a lot cleaner. …plus I wouldn't really know how to do that 😅

Anyone any thoughts / solutions on that?

fabianmichael commented 3 years ago

Hi @hansgohr, I’m sorry that I currently cannot help you with that. But AutoID-like unique IDs are on Kirby’s roadmap and I’ll probably have a look at them once they have landed in core.

If you need a quick solution, can use the Link dialog as a starting point (see https://github.com/sylvainjule/kirby-markdown-field/blob/next/src/components/Dialogs/LinkDialog.vue) for a custom extension. But you also need to modify the corresponding (link: ...) Kirbytag, because it won’t resolve AutoIDs by default.