降价嵌套表格?

Que*_*eSo 7 markdown

I need to create a nested-like table in markdown like this:

在此处输入图片说明

How can I do that?

alf*_*lfC 18

@Waylan 是对的,您可以将 HTML(例如使用 Markdown 生成的表格)粘贴到 Markdown 表格的单元格中。

\n\n

这需要一些工作,因为您需要检查渲染的生成的 HTML(幸运的是,像 Firefox 这样的浏览器允许您检查渲染的 HTML 的源)。

\n\n

另一个缺点是结果可能不可读,例如:

\n\n
|                |ASCII                          |HTML                         |\n|----------------|-------------------------------|-----------------------------|\n|Single backticks|`\'Isn\'t this fun?\'`            |\'Isn\'t this fun?\'            |\n|Quotes          |`"Isn\'t this fun?"`            |<table>  <thead>  <tr>  <th></th>  <th>ASCII</th>  <th>HTML</th>  </tr>  </thead>  <tbody>  <tr>  <td>Single backticks</td>  <td><code>\'Isn\'t this fun?\'</code></td>  <td>\xe2\x80\x98Isn\xe2\x80\x99t this fun?\xe2\x80\x99</td>  </tr>  <tr>  <td>Quotes</td>  <td><code>"Isn\'t this fun?"</code></td>  <td>\xe2\x80\x9cIsn\xe2\x80\x99t this fun?\xe2\x80\x9d</td>  </tr>  <tr>  <td>Dashes</td>  <td><code>-- is en-dash, --- is em-dash</code></td>  <td>\xe2\x80\x93 is en-dash, \xe2\x80\x94 is em-dash</td>  </tr>  </tbody>  </table>      |\n|Dashes          |`-- is en-dash, --- is em-dash`|-- is en-dash, --- is em-dash|\n
Run Code Online (Sandbox Code Playgroud)\n\n

呈现为:

\n\n

在此输入图像描述

\n\n

https://stackedit.io编辑器中。

\n\n

最后,你的例子是这样的:

\n\n
|   |  Returned Value |\n|--| -----------------|\n| Version V2 |     <table>  <thead>  <tr>  Z-value</th>  <th>06</th>  </tr>  </thead>  <tbody>  <tr>  <td>Protocol</td>  <td>04 05</td>  </tr>  <tr>  <td>Protocol Sub</td>  <td>02</td>  </tr>  <tr>  <td>Application</td>  <td>11</td>  </tr>  <tr>  <td>Application Sub</td>  <td>00</td>  </tr>  </tbody>  </table>              |\n
Run Code Online (Sandbox Code Playgroud)\n\n

并渲染成:

\n\n

在此输入图像描述

\n\n

这可能不值得。Markdown 不适合这个(如果可以的话,请使用 LaTeX,或者使用 LaTeX 嵌入的 Markdown)

\n