在R markdown中创建列表和子项目不再起作用?

时间:2017-08-07 07:20:19

标签: r markdown

我正在关注以下备忘单:

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

尝试使用以下代码制作一些列表(从备忘单中粘贴的副本)

---
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 

但结果与备忘单中的结果不同,圆圈不一样,子项不会缩进。

2 个答案:

答案 0 :(得分:13)

对于每个人在显示简单列表时遇到问题,降价需要在列表前加Empty line
This will not work * Item 1 * Item 2 * Item 3

输出将如下所示。
这行不通 *项目1 *项目2 *项目3

要解决此问题,
INSERT EMPTY LINE HERE, BEFORE LIST.
*项目1
*项目2
*项目3

应该这样输出

  • 项目1
  • 第2项
  • 第3项

答案 1 :(得分:6)

尝试使用app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); //handle client side routes app.Run( async (context) => { context.Response.ContentType = "text/html"; await context.Response.SendFileAsync(Path.Combine(env.WebRootPath,"index.html")); }); 或双tab分隔代替tab子项目

spacebar

enter image description here