Gitbook Markdown restarts numbering when a table is added to a numbered list

895 views Asked by At

I want to add a table to a numbered list. Here is what I have tried:

1. first line
2. second line

|head1|head2|
|---|---|
|value1|value2|
3. third line

However, the third item will numbered with 1.

How can I put a table inside an item in a numbered list?

1

There are 1 answers

1
Chris On BEST ANSWER

The syntax for this should be

1. first line
2. second line

    |head1|head2|
    |---|---|
    |value1|value2|

3. third line

Indenting the table by four spaces should nest the table inside the second list item.

Unfortunately, GitBook doesn't currently support tables nested in lists as confirmed by this open issue.