How to embed HTML in restructured text file?

user248237 picture user248237 · Dec 23, 2011 · Viewed 13.9k times · Source

I'm using reStructuredText and I'd like to add HTML encoding an interactive flash-type animation through the <embed> tag. From my .rst document, how can I specify the position of this arbitrary chunk of HTML? Something like:

  .. html ::

  <embed>
  ... more html here ...
  </embed>

Does this feature exist? thanks.

Answer

Owen picture Owen · Dec 24, 2011

Try

.. raw:: html

    <embed>
        ...
    </embed>

The raw directive