fotanus - 1 year ago 135
Markdown Question

# How can I create a table on gitlab wiki?

How can one create a table on gitlab wiki?

It uses github flavored markdown, and this flavor of markdown support tables but I can't make the following example work:

Colons can be used to align columns.

| 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


Is there a trick to activate tables?

It seems to be still the case, as described in Issue 3651 and issue 1238, even though Flavored Markdown is supported:

This wouldn't work:

| parameters  | desc                 |
| :---------  | :------------------- |
| -w | --word | Parameter for Word   |


So contributions are welcome on this specific bug.

However, AJNeufeld suggest (in 2016) in the comments:

You need to use the &#124; entity code to get the vertical pipe between "-w" and "--word", so it appears as "-w | --word" in the rendered table.
Ie, the full line should be:

| -w &#124; --word | Parameter for Word |