Creating lists and sub items in R markdown not working any longer?

Viewed 36513

I'm following the following cheat sheet:

https://www.rstudio.com/wp-content/uploads/2015/02/rmarkdown-cheatsheet.pdf

And trying to make some lists using the following code (copy pasted from the cheat sheet)

---
title: "Test"
author: "Test"
date: "7 August 2017"
output: html_document # or pdf_document
---

* unordered list
* item 2
 + sub-item 1
 + sub-item 2

1. ordered list
2. item 2
 + sub-item 1
 + sub-item 2 

But the results are not the same as in the cheat sheet, the circles are not the same and the sub items do not get indented.

2 Answers

For everyone that has problems showing simple list, markdown need an Empty line before a list.
This will not work * Item 1 * Item 2 * Item 3

The output will look something like this.
This will not work * Item 1 * Item 2 * Item 3

To fix this;
INSERT EMPTY LINE HERE, BEFORE LIST.
* Item 1
* Item 2
* Item 3

should output like this

  • Item 1
  • Item 2
  • Item 3
Related