jeb*_*nes 19 r knitr r-markdown
我一直在RMarkdown工作制作一些幻灯片集,并发现了嵌套列表和列表类型混合的奇怪行为.以下简短演示文稿仅适用于幻灯片2.嵌套列表不再嵌套,并且混合增量有序和无序列表完全失败.我尝试过几种不同的表示格式,但实际上对于不同的输出类型实际上是不同的,这是令人惊讶的.
思考?
---
title: "Attempt"
output: revealjs::revealjs_presentation
---
## Nested Incremental Lists
> * This
> + kinda works (but is not nested)
## Incremental Ordered Lists
> 1. This
> 2. works
## Broken - Nested mixed lists
> 1. This
> + Does not work
Run Code Online (Sandbox Code Playgroud)
Gau*_*eja 12
当我给出2个标签时工作,所以:
1. This
<tab><tab>+ Should work
Run Code Online (Sandbox Code Playgroud)
小智 10
I was having the same problem and found a solution that worked. When making nested lists without incremental reveal, you need to add four spaces for sub-bullets. When making lists with incremental reveal, you need to add one space after >. So, when making sub-bullets with incremental reveal, you need five spaces between > and - (one for the incremental syntax, and four for the nested list syntax).
So, a regular list with incremental reveal would look like this:
><space>- Point 1
><space>- Point 2
Run Code Online (Sandbox Code Playgroud)
If you want to add sub-bullets, this will not work:
><space>- Point 1
><space><space><space><space>- Sub-bullet
><space>- Point 2
Run Code Online (Sandbox Code Playgroud)
But this will work:
><space>- Point 1
><space><space><space><space><space>- Sub-bullet
><space>- Point 2
Run Code Online (Sandbox Code Playgroud)
Hope this is helpful/readable!