如何在markdown中使用内联逗号?

如何在markdown中使用内联逗号?,markdown,graphql,gatsby,Markdown,Graphql,Gatsby,在markdown中,我如何放置逗号而不将其作为代码计数。我应该补充一点,这是在降价页面的变量部分 例如: array: [ line one without comma, line with comma here, still the same line, new line ] 所以,如果我循环这个,我会得到如下结果: line one without comma line with comma here still the same line new line 在玩了一段时间

在markdown中,我如何放置逗号而不将其作为代码计数。我应该补充一点,这是在降价页面的变量部分

例如:

array: [
  line one without comma,
  line with comma here, still the same line,
  new line
]
所以,如果我循环这个,我会得到如下结果:

line one without comma
line with comma here
still the same line
new line

在玩了一段时间,尝试了很多不同的东西之后,我试着用“”来包装这些行,结果它成功了。因此,如果要将逗号作为数组字符串元素的一部分,可以这样做:

array: [
  line one without comma,
  "line with comma here, still the same line",
  new line
]
我的新输出如下所示:

line one without comma
line with comma here, still same line
new line

我不确定我是否理解你的问题。逗号在降价中没有特殊意义。也许你可以编辑你的问题,包括实际的HTML输出和你想要的输出。但这会为此数组创建4个不同的字符串。Markdown无法理解并运行代码。没有所谓的
数组
。您是否在Markdown的基础上使用了其他东西(比如r)?我将此用于gatsbyjs和graphql。我查询它,如果我获取变量,我就可以访问这个数组。您是对的,但我可能需要删除此问题或重新编写。您可以用“\n”或“\r”分开吗?否则,你能跳过普通的逗号吗<代码>此处带逗号的行\,仍然是同一行,或类似行