Vimeo shortcode not working with reveal.js

I’ve got a strange issue here. My website uses Hugo Blox (repo here), which has a module for integrating reveal.js with Hugo. The vimeo shortcode works perfectly fine with normal markdown pages, but when including a Vimeo video (using the built-in shortcode) in one of the reveal.js slides, it’s included inside a<pre>environment, preventing it from rendering fine. This does not happen with Youtube videos.

I’ve fixed it by adding an hyphen at the end of this line, but I have no idea why is this happening. Any clue?

Thank you very much I advance!

Without a concrete example, I can’t provide specifics, but the Markdown is getting indented by four or more spaces, which makes it an indented code block and wraps it in a <pre> element.