我想做一个缩进列表,但我不希望它有项目符号或数字。我在RStudio中使用Rmarkdown,并编织成html。
#### bla bla bla
* Example indented line with bullet point
* Another indent with another bullet point
* Yea this is good except for the stupid bullets!
1. Example indented line with numbers
* sure and an indent with a bullet too
2. But there's these stupid numbers now!
two spaces doesn't indent at all
or nest indent with 4
yea still no indent with 2.
four spaces ALSO doesn't indent
just makes some stupid code
why do you hate indents rmd??
这可以使用 R Markdown 语法中内置的行块来实现。如果您希望遵守缩进,则可以以 |
开头
此方法适用于多种输出格式,并且不需要任何其他 CSS 样式:
---
output:
html_document: default
pdf_document: default
---
Here is some text with no indentation
| A list
| A sublist
| Sublist Item 2
| Sublist Item 3
如果要更改列表的外观并输出为 HTML,请使用 css:
---
title: "ListTest"
output: html_document
---
<style>
.nobullet li {
list-style-type: none;
}
</style>
<div class="nobullet">
* This list
* Doesn't have bullets
</div>
* This list
* Is normal
这不适用于其他输出格式。