I'm not sure exactly what I should call these, but what I'm looking for is a way to create custom text tags similar to what Kirby has for Custom Kirbytext Tags

The goal is to customize the kind of things that can be added to link tags at this point. I have a client that has links that included things like data-segment (for event tracking), target, and class. I can add class easily enough with markdown extra syntax, but not the other bits.

I think that I could do this using a template partial and then using {{ partial:link }} with the variables added that way. Is there a way to make this less clunky and verbose? I mean, they may as well just use a standard link tag at that point, and maybe that's what they'll have to do. But I was hoping for something more.