doxygen 中使用 markdown

markdown 表格换行

markdown 表格生成 doxygen 时换行与标准的 markdown 语法稍有差异

markdown 标准换行

markdown 中可以使用 html 的换行标签 <br> 实现换行

| Offset | Field                                                               |
| ------ | ------------------------------------------------------------------- |
| 0      | a this first instruction 00:xxx <br> 01:yyy <br> 02:zzz <br> 03:ttt |
| 1      | b                                                                   |
| 2      | c                                                                   |
| 3      | d                                                                   |
| 4      | e                                                                   |
| 5      | f                                                                   |
| 6      | g                                                                   |
| 7      | h                                                                   |
| 8      | i                                                                   |

Offset Field
0 a this first instruction 00:xxx
01:yyy
02:zzz
03:ttt
1 b
2 c
3 d
4 e
5 f
6 g
7 h
8 i

doxygen 中 markdown 表格换行

doxygen 中除了支持 markdown 标准换行之外还支持 \n 换行

| Offset | Field                                                               |
| ------ | ------------------------------------------------------------------- |
| 0      | a this first instruction 00:xxx \n 01:yyy \n 02:zzz \n 03:ttt |
| 1      | b                                                                   |
| 2      | c                                                                   |
| 3      | d                                                                   |
| 4      | e                                                                   |
| 5      | f                                                                   |
| 6      | g                                                                   |
| 7      | h                                                                   |
| 8      | i                                                                   |

在这里插入图片描述

markdown 表格缩进

缩进使用 markdown 标准缩进语法 &nbsp;

| Offset | Field                                                                                                                                                                    |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 0      | a this first instruction <br> &nbsp;&nbsp;&nbsp;&nbsp;00:xxx <br> &nbsp;&nbsp;&nbsp;&nbsp;01:yyy <br> &nbsp;&nbsp;&nbsp;&nbsp;02:zzz <br> &nbsp;&nbsp;&nbsp;&nbsp;03:ttt |
| 1      | b                                                                                                                                                                        |
| 2      | c                                                                                                                                                                        |
| 3      | d                                                                                                                                                                        |
| 4      | e                                                                                                                                                                        |
| 5      | f                                                                                                                                                                        |
| 6      | g                                                                                                                                                                        |
| 7      | h                                                                                                                                                                        |
| 8      | i                                                                                                                                                                        |

在这里插入图片描述

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐