Reveal.js 未在 Markdown 幻灯片中保留 html 小标签

Reveal.js is not preserving html small tags within Markdown slides

Markdown 应该在 Markdown 块中保留 HTML 标签,但是 Reveal.js 幻灯片的 markdown 中的 <small> 标签 正在转换为普通的 <p> 标签。我可以用 HTML 代码制作整张幻灯片,但这对于偶尔需要小文本的人来说并不理想。这是幻灯片:

<section data-markdown>
    # IA: **4a**

    Information Architecture uses **Cognitive Psychology** research

    - **Cognitive load**: how much information we can process at any time—avoiding information overload ([rule of 7](http://neuromavin.com/cognitive-limits-social-networks-and-dunbars-number/)).
    - **Mental models**: the assumptions users have—information is easier to discover in familiar places.
    - **Decision making**: the cognitive process of making a choice or selecting an option—IA helps make decisions by providing contextual information at key points.

    <small>
    [The Magical Number Seven… George A. Miller (1956)](http://psychclassics.yorku.ca/Miller/)  
    </small>
</section>

这会在段落中生成以下 HTML p 标记,而不是 small 标记:

<p>
  <a href="http://psychclassics.yorku.ca/Miller/">The Magical Number Seven… George A. Miller (1956)</a>
</p>

为什么(或 where/how)<small> 标签被删除?我试过向小标签添加 data-markdown 属性,但标签仍然被删除。

您需要在 <section> 标签内添加 <textarea data-template>。例如:

<section data-markdown>
<textarea data-template>

# Does this work?

<small>Smaller text</small>

</textarea>
</section>