如何在gitlab wiki上创建表?

fot*_*nus 11 markdown gitlab

如何在gitlab wiki上创建表?

它使用github风格的markdown,这种降价支持表的味道,但我不能使下面的例子工作:

冒号可用于对齐列.

| 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
Run Code Online (Sandbox Code Playgroud)

有激活表的技巧吗?

Von*_*onC 10

似乎仍然如此,如问题3651问题1238中所述,即使支持Flavored Markdown:

这不起作用:

| parameters  | desc                 |
| :---------  | :------------------- |
| -w | --word | Parameter for Word   |
Run Code Online (Sandbox Code Playgroud)

因此欢迎对此特定错误做出贡献.

但是,AJNeufeld建议(2016年)在评论中:

您需要使用|实体代码来获取" -w"和" --word" 之间的垂直管道,因此它显示为"-w | --word"在渲染表中.
即,整行应该是:

| -w | --word | Parameter for Word |
Run Code Online (Sandbox Code Playgroud)