我想知道如何在Doxygen的Markdown文件中为表格添加标题。我知道Doxygen可以从.md文件中的以下代码生成表格,但我找不到添加表格标题的方法。
|Name |Age|
|-----|---|
|Alice| 18|
|Bob | 23|
|Name |Age|
|-----|---|
|Alice| 18|
|Bob | 23|
###H6
|Header1 | Header2 | Header 3 |
|--------|---------|----------|
|0 | 1 | 7 |
|2 | 5 | 3 |
|9 | 7 | 2 |
| Caption |
|Header1 | Header2 | Header 3 |
|--------|---------|----------|
|0 | 1 | 7 |
|2 | 5 | 3 |
|9 | 7 | 2 |
如果您想要第二个版本,应该使用.html表格
不幸的是,在doxygen中无法实现第二种方法。
you would need multimarkdown support, which is shown by the link the table example but is not supported by doxygen yet, right now doxygen only supports simple tables
you use only html
you find a workaround which suites you, something like this:
<table>
<tr>
<td colspan=1>
Caption
</td>
|Header1 | Header2 | Header 3 |
|--------|---------|----------|
|0 | 1 | 7 |
|2 | 5 | 3 |
|9 | 7 | 2 |
</tr>