我想列出一个缩进的列表,但是我不希望它有项目符号或数字。我在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??

最佳答案

如果要更改列表的外观并输出为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

这不适用于其他输出格式。

关于r - 缩进而不在RMarkdown中添加项目符号点或数字,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47087557/

10-11 05:22