yihui / xaringan

Presentation Ninja 幻灯忍者 · 写轮眼
https://slides.yihui.org/xaringan/
Other
1.49k stars 280 forks source link

Third level lists need an extra tab #282

Closed py9mrg closed 2 years ago

py9mrg commented 4 years ago

I am experiencing a strange thing with both ordered and unordered lists. To get a third level entry you need to add an extra tab compared to normal md.

title: "Presentation Ninja"
subtitle: "⚔<br/>with xaringan"
author: "Yihui Xie"
institute: "RStudio, PBC"
date: "2016/12/12 (updated: `r Sys.Date()`)"
output:
  xaringan::moon_reader:
    seal: false
---

# Hello World

- Here are some bullet points using markdown syntax
  - Here's the next level
    - And this should be a lower level, but it isn't
      - Whereas this is:

- To summarise:
  - To get third level bullets:
      - You have to use an extra tab on the third level.

1. No tabs
  1. One tab
    1. Two tabs
      1. Three tabs

Giving the result: bullet-issues

By filing an issue to this repo, I promise that

I understand that my issue may be closed if I don't fulfill my promises.

yihui commented 2 years ago

I think you need four spaces (or a true tab instead of two spaces) to indicate a new level. The syntax of remark.js's Markdown is different with Pandoc's Markdown. This works fine:

# Hello World

- Here are some bullet points using markdown syntax
    - Here's the next level
        - And this should be a lower level, but it isn't
            - Whereas this is:

- To summarise:
    - To get third level bullets:
        - You have to use an extra tab on the third level.

1. No tabs
    1. One tab
        1. Two tabs
            1. Three tabs