如何在重构的文本文件中嵌入HTML? [英] How to embed HTML in restructured text file?

查看:118
本文介绍了如何在重构的文本文件中嵌入HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 reStructuredText ,我想通过< embed> 标记。从我的第一个文档,我该如何指定这个任意块的HTML的位置?例如:

  .. html :: 

< embed> ;
...更多html here ...
< / embed>

此功能是否存在?谢谢。

解决方案

c> .. raw :: html

< embed>
...
< / embed>

raw 指令


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.

解决方案

Try

.. raw:: html

    <embed>
        ...
    </embed>

The raw directive

这篇关于如何在重构的文本文件中嵌入HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆