How to include auto-numbered lists in github_document?

大憨熊 提交于 2020-01-06 05:45:05

问题


The below code works for auto-numbering lists in plain html:

---
title: "Assignment 1"
output: 
  html_document:
    number_sections: true
---

1. First

2. second

but how can I use auto-numbering to output a github_document?

UPDATE: this works for me after updating to pandoc 2.2.3.2 and RMarkdown 1.10 not sure if there are other ways

---
title: "Assignment 1"
output: github_document
---

#. First

#. second

来源:https://stackoverflow.com/questions/51071256/how-to-include-auto-numbered-lists-in-github-document

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!