如何在 markdown table 中编写项目符号列表?
How to write bullet list in markdown table?
我想用 markdown table 写一个项目符号列表,但是我做不到。我尝试了 here, and here 给出的解决方案。
我正在 bitbuckets readme.md 文件中写入以下内容 table。
| **Date** | **A** | **B**
|:----------:|:-----:|:------:
| 2016 | Something | <ul><li>A</li><li>B</li><li>C</li></ul>
B 列的每一行都包含一个包含 2 个项目的项目符号列表。
我怎样才能做到这一点?我错过了什么?请告诉我。提前致谢。
编辑:我在您提到的 post 中使用了@Dorgrin 给出的答案作为可能的重复。即使在使用它时,我也无法显示列表。我看到的是第三列中的 html 纯文本代码。我也在这个 post 中尝试了@Ionica 给出的答案。我仍然看到 html 代码为纯文本。
Bitbucket 在支持的功能方面落后。显然他们 allow html in markdown README files,但他们决定不在片段中支持它。
我说“显然”是因为我刚刚尝试过,但它甚至不起作用。看到这个 repo.
我决定问他们一个关于这个的问题。您可以关注进一步的发展here
从更积极的方面来说,您在 Github 上的效果很好,您可以在此处看到:
| **Date** | **A** | **B**
|:----------:|:-----:|:------:
| 2016 | Something | <ul><li>A</li><li>B</li></ul><ul><li>C</li></ul> |
<script src="https://gist.github.com/smac89/bc0ff6c7e41396293367b00df626317b.js"></script>
您可以在降价 table 中使用 ascii 字符 •
和换行符 <br>
标记来模仿项目符号列表的视觉效果。
| | Apples | Oranges |
|-----------|--------|---------|
|attributes | • color: red <br> • shape: round | • color: orange <br> • shape: round |
|tasty | yes | yes |
这样渲染
我认为这可以避免 table 使用 <li>
和 <ol>
/<ul>
标签的 html 混乱。
我想用 markdown table 写一个项目符号列表,但是我做不到。我尝试了 here, and here 给出的解决方案。
我正在 bitbuckets readme.md 文件中写入以下内容 table。
| **Date** | **A** | **B**
|:----------:|:-----:|:------:
| 2016 | Something | <ul><li>A</li><li>B</li><li>C</li></ul>
B 列的每一行都包含一个包含 2 个项目的项目符号列表。 我怎样才能做到这一点?我错过了什么?请告诉我。提前致谢。
编辑:我在您提到的 post 中使用了@Dorgrin 给出的答案作为可能的重复。即使在使用它时,我也无法显示列表。我看到的是第三列中的 html 纯文本代码。我也在这个 post 中尝试了@Ionica 给出的答案。我仍然看到 html 代码为纯文本。
Bitbucket 在支持的功能方面落后。显然他们 allow html in markdown README files,但他们决定不在片段中支持它。
我说“显然”是因为我刚刚尝试过,但它甚至不起作用。看到这个 repo.
我决定问他们一个关于这个的问题。您可以关注进一步的发展here
从更积极的方面来说,您在 Github 上的效果很好,您可以在此处看到:
| **Date** | **A** | **B**
|:----------:|:-----:|:------:
| 2016 | Something | <ul><li>A</li><li>B</li></ul><ul><li>C</li></ul> |
<script src="https://gist.github.com/smac89/bc0ff6c7e41396293367b00df626317b.js"></script>
您可以在降价 table 中使用 ascii 字符 •
和换行符 <br>
标记来模仿项目符号列表的视觉效果。
| | Apples | Oranges |
|-----------|--------|---------|
|attributes | • color: red <br> • shape: round | • color: orange <br> • shape: round |
|tasty | yes | yes |
这样渲染
我认为这可以避免 table 使用 <li>
和 <ol>
/<ul>
标签的 html 混乱。