How to change the order of HTML output of a core block?
I want to change the HTML output of the latest-posts block (i.e.: wrap the date inside the post link).
I know I can hook into
'blocks.getSaveElement' and retrieve stuff like the element, blockType and attributes.
But none of this is helpful as this block is rendered in the front-end via php.
Is the only way to manipulate the markup to create a custom block and copying the core block files? That seems unintuitive and too much work for swapping two tags. And just writing JS to manipulate the front-end is not an option (might make elements jump around).
Any ideas on how to achieve this in any better way?