如何在降价中放置内联逗号?

How to put an inline comma in markdown?

在 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