首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何在markdown表中编写列表?

如何在markdown表中编写列表?
EN

Stack Overflow用户
提问于 2013-11-13 17:57:32
回答 4查看 177.2K关注 0票数 239

是否可以在markdown表中创建列表(项目符号,编号或未编号)。

表格如下所示:

代码语言:javascript
复制
| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

列表如下所示:

代码语言:javascript
复制
* one
* two
* three

我能以某种方式合并它们吗?

EN

回答 4

Stack Overflow用户

发布于 2016-09-22 01:22:30

如果希望单元格中没有项目符号列表(或任何其他非标准用法)或更多行,请使用<br />

代码语言:javascript
复制
| Event         | Platform      | Description |
| ------------- |-----------| -----:|
| `message_received`| `facebook-messenger`<br/>`skype`|
票数 104
EN

Stack Overflow用户

发布于 2020-01-15 16:05:29

另一种解决方案是,您可以将<br>标签添加到表中

代码语言:javascript
复制
    |Method name| Behavior |
    |--|--|
    | OnAwakeLogicController(); | Its called when MainLogicController is loaded into the memory , its also hold the following actions :- <br> 1. Checking Audio Settings <br>2. Initializing Level Controller|

票数 6
EN

Stack Overflow用户

发布于 2018-09-03 04:26:23

我最近实现的另一种方法是在panflute中使用div-table plugin

这将从一组受保护的div(markdown的pandoc实现中的标准)创建一个表,其布局类似于html:

代码语言:javascript
复制
---
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
:::::

看起来像这样:

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19950648

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档