如何使用reveal.js配置markdown?

问题描述

我想使用带有markdown的Reveal.js。我遵循了full set up 安装指南

  1. 安装node.js
  2. 克隆manifest.js存储库
  3. 移动到Reveal.js文件夹并安装依赖项
  4. 在Reveal.js文件夹中运行npm start

然后我修改index.html页面,在the documentation之后添加了降价促销

<section data-markdown>
<textarea data-template>
## slide 1 
please add me another slide

---
## slide 2
I _need_ it 

---
## slide 3
</textarea>
</section>

但是降价不能完全发挥作用:

reveal.js problem with markdown

所有内容都在同一张幻灯片上,第二行应为段落。 我该怎么办?

[email protected]

解决方法

我认为您需要指定数据分隔符,在示例中为“ ---”

<section data-markdown data-separator="---">

:)

并考虑文档中的内容

请注意,这对缩进(避免混用制表符和空格)和换行符(避免连续的换行)很敏感。