I’m using @contentful/rich-text-react-renderer
to render rich text on my website. I essentially want to be able to display block-level hyperlinks (i.e, hyperlinks that take up a whole line) as a button, and to display inline hyperlinks as normal links.
This is what the rich-text looks like with both types of hyperlinks:
So is there any way I can distinguish between the two?