[details] plugin working while editing but not when posted

I’m not disagreeing about the blank lines needed. When I remove the blank lines, here’s what the preview looks like (it appears to work):

details go here

This text will not be visible until you expand the spoiler.

it also works with blurred text

this is code

However, once posted the cooked post does not match the preview.