pandoc -f markdown -t slidy

问题描述 投票:1回答:1
The reason is that newer pandoc versions have a

native divdiv element in their internal document AST, which is handled slightly differently.incrementalYou can get back the old behaviour with:

$ echo '<div class="incremental">hello</div>' | pandoc -f markdown -t slidy
<div class="slide section level6">

<div>
hello
</div>
</div>

But what you'd probably want to do is also use the native div syntax. See also phttps:

$ echo '<p class="incremental">hello</p>' | pandoc -f markdown -t slidy
<div class="slide section level6">

<p class="incremental">
hello
</p>
</div>

incremental我想让增量的

$ echo '<div class="foo">hello</div>' | pandoc -f markdown -t slidy
<div class="slide section level6">

<div class="foo">
hello
</div>
</div>

元素,但pandoc是剥离出来的。

的类名。
pandoc slidy
1个回答
2
投票

五年前我生成这些幻灯片的时候,这还能用,但现在不行了(pandoc 2.2.1)。 这被认为是一种反模式吗? 我是不是做错了什么?

我想制作递增的div元素,但pandoc却把递增的类名从其中剥离出来: $ echo '。

pandoc -f markdown-native_divs

你好' /pandoc.orgMANUAL.html#incremental-lists。

::: incremental

- Eat spaghetti
- Drink wine

:::
© www.soinside.com 2019 - 2024. All rights reserved.