我正在制作一个与 HTML 页面结合的 Rmarkdown 文档。我不想用标题或项目符号分隔某些文本部分,而是想在它们之间绘制水平线。
根据http://rmarkdown.rstudio.com/authoring_basics.html http://rmarkdown.rstudio.com/authoring_basics.html这被称为“水平规则”,我可以用三个或更多来做到这一点---
。然而,当我实际尝试这样做时,各个部分从 html 文档中消失了。这是我的代码的一个非常简单的示例:
---
title: "formatting issue"
author: "rrr"
output:
html_document:
toc: true
toc_depth: 2
toc_float: true
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# bla {.tabset}
## tab 1
---
**text1**
bla
---
**text2**
bla
---
**text3**
bla
---
## tab 2
bla
## tab 3
bla
# bla
bla bla bla bla
请注意文本部分text1 text2 and text3当你编织到 html 时,不会全部显示出来。当我乱搞它时,我最终会得到不同的缺失或缺失,但我无法让它们全部出现或找出原因。
水平分隔符需要由前导和后继的换行符包围,如下所示:
## heading
much interesting text ...
---
## heading
more interesting text
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)