Why is it so much easier to define a whole new block than add `class` support to Gutenberg’s inline link editor?

Considering a dummy paragraph class, custom field or taxonomy (after all), which when present would trigger a `the_content` filter to add the appropriate class to the first link it encounters—if it isn’t already there.


Was thinking Jetpack’s Markdown block might support [a link](example.org/){.u-bookmark-of}, but alas. (ParseDown Extra does that stuff, but there’s no actively developed WP plugin for it. And it wouldn’t work with Gutenberg anyway.) The “Custom HTML” block might be your best bet.

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!