Markdown 如何在gitlab wiki上创建表?
如何在gitlab wiki上创建表 它使用github风格的markdown和这种风格的markdown,但我无法使以下示例正常工作: 冒号可用于对齐列Markdown 如何在gitlab wiki上创建表?,markdown,gitlab,Markdown,Gitlab,如何在gitlab wiki上创建表 它使用github风格的markdown和这种风格的markdown,但我无法使以下示例正常工作: 冒号可用于对齐列 | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | ze
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.
Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3
是否有激活表的技巧?情况似乎仍然如此,如和中所述,尽管: 这是行不通的:
| parameters | desc |
| :--------- | :------------------- |
| -w | --word | Parameter for Word |
关于这个特定的bug
但是,建议(2016年):
您需要使用|代码>实体代码以获取“-w
”和“--word
”之间的垂直管道,因此它在呈现的表中显示为”-w |--word
。
也就是说,完整的行应该是:
您还可以使用以下过程在Gitlab wiki中添加包含您想要的列/行的表
| column1 | column2 | column3 |
|---|---|---|
| data_ column1 | data_ column2 | data_ column3 |
您需要使用|代码>实体代码,以获取“-w”&“-word”之间的垂直管道,使其在渲染表中显示为“-w|--word”。也就是说,最后一行应该是:|-w|--word |
@AJNeufeld的word |参数看起来很棒!非常感谢。我已将您的评论包含在答案中,以提高可视性。
| column1 | column2 | column3 |
|---|---|---|
| data_ column1 | data_ column2 | data_ column3 |