缺少标题和作者

Missing tittle and author

我有一个 Rmd(见下文)文件,当我在没有 toc 和 pandoc 的情况下执行文件时,我能够获得标题和作者,但是有了它们我看不到它们。如何让我的标题和作者姓名与编号部分和目录一起显示?

---
title: "Design"
author: "Jen"
output:
  html_document:
    toc: true
    pandoc_args: [
      "--number-sections"
    ]
  
---

# plots

您应该 rmarkdown 完全控制 pandoc 参数:

---
title: "Design"
author: "Jen"
output:
  html_document:
    toc: true
    number_sections: true
---

# plots

来源:https://bookdown.org/yihui/rmarkdown/html-document.html#section-numbering