Is there a plugin that allows one to use a math block (like a code block but with math/latex as the language) instead of math fencing using $$ ?

I’m working with gitlab that supports math blocks and does not support math fencing using $ so it would be very useful.

if there is no such plugin, would it be hard to create?

thanks