Issue with HTML embed code in Redcloth 4.0.3

Hi all,

I’m having an issue with HTML embed code in Redcloth 4.0.3.

The following embed code is part of some textile that is being
rendered with the this command:

output = RedCloth.new(text, [:no_span_caps]).to_html(:textile)

This code is completely escaped, with no trace of it in the output.
However, if I paste it on the same line as some other text, or with
text inside the embed tag, it outputs correctly.

This is embed code

or

i am inside embed code

The above both render correctly.

I presume this is a bug with Textile? Please let me know if there’s a
better place to file this, or if you need anymore information.

Cheers,

Tom