是否可以在降价表中创建一个列表(项目符号,编号与否)。
表是这样的:
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
列表是这样的:
* one
* two
* three
我能把它们合并吗?
据我所知没有,因为我所知道的所有降价参考资料,比如这个,都提到:
单元格内容必须只在一行上
你可以尝试使用Markdown表生成器(它的例子看起来像你在你的问题中提到的,所以你可能已经知道了)。
Pandoc
如果你正在使用Pandoc的markdown(它扩展了John Gruber的markdown语法,GitHub调味markdown基于此),你可以使用grid_tables:
+---------------+---------------+--------------------+
|水果 |价格 |优势 |
+===============+===============+====================+
|香蕉 |$1.34 |- 内置包装器 |
| | |- 鲜艳的色彩 |
+---------------+---------------+--------------------+
|橙子 |$2.10 |- 治疗坏血病 |
| | |- 美味 |
+---------------+---------------+--------------------+
或multiline_tables。
-------------------------------------------------------------
Centered Default Right Left
Header Aligned Aligned Aligned
----------- ------- --------------- -------------------------
First row 12.0 Example of a row that
spans multiple lines.
Second row 5.0 Here's another one. Note
the blank line between
rows.
-------------------------------------------------------------
我最近实现的另一种方法是将div-table插件与panflute一起使用。
这将从一组fenced div (markdown的pandoc实现中的标准)中创建一个表,其布局类似于html:
---
panflute-filters: [div-table]
panflute-path: 'panflute/docs/source'
---
::::: {.divtable}
:::: {.tcaption}
a caption here (optional), only the first paragraph is used.
::::
:::: {.thead}
[Header 1]{width=0.4 align=center}
[Header 2]{width=0.6 align=default}
::::
:::: {.trow}
::: {.tcell}
1. any
2. normal markdown
3. can go in a cell
:::
::: {.tcell}
![](https://pixabay.com/get/e832b60e2cf7043ed1584d05fb0938c9bd22ffd41cb2144894f9c57aae/bird-1771435_1280.png?attachment){width=50%}
some text
:::
::::
:::: {.trow bypara=true}
If bypara=true
Then each paragraph will be treated as a separate column
::::
any text outside a div will be ignored
:::::
看起来像: