I’ve been waiting for months if not years for someone smarter than me to come up with a way to easily add custom HTML classes to inline links, using the block editor.
Currently, if you edit a block’s HTML and then go back and forth between the HTML and Editor view once more, the editor will almost certainly have removed the class …
Because turning a “note” into a “bookmark” can be done simply by adding a u-bookmark-of
class to the “bookmark hyperlink.” And so on. (Certain microformats require more in-depth changes. Like, they might need an extra nested span or so. But in very many cases, a custom class will suffice.)
But, alas. There’s a few issues over on GitHub, but they seem to be moving very, very slowly …
I looked into it a bit back then, maybe I should give it another try. I’ve found simply creating new blocks easier than messing with the “text formatting” toolbar.
Another benefit of “simply providing a block” is that using these requires no knowledge of HTML, at all.