use*_*313 5 r r-markdown bookdown
如何正确缩进列表中列表中的段落?我想在下面的示例中显示一个空白行后开始一个新段落.此示例适用于在bookdown之外使用时的RMarkdown,但在与bookdown pacakage一起使用时会中断.
第一个有序列表项
您可以在列表项中正确缩进段落.注意上面的空白行和前导空格(至少有一个,但我们在这里使用三个也对齐原始Markdown).
另一个项目
如果我将以下代码渲染为 pdf,那么我会得到上面列出的输出。注意间距和空白。数字后面有两个空格(完整缩进为 4)。项目符号后面有三个空格。
1. First ordered list item
You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
2. Another item
* Unordered sub-list.
3. Actual numbers don't matter, just that it's a number
1. Ordered sub-list
4. And another item.
Run Code Online (Sandbox Code Playgroud)
结果看起来像这样