GitbookIO/gitbook

how to insert table in list ?

Closed this issue · 12 comments

I try to insert a table into a list format markdowns as in the picture, Not Working:
gitbook

Thanks.

+1 here

Gitbook doesn't support markdown alignments

Tables Are Cool
col 1 is left-aligned $1600
col 2 is centered $12
col 3 is right-aligned $1
tormi commented

I try to insert a table

The problem is that Gitbook uses 2 dashes instead of 3 which is required for rendering tables correctly. Ref: github/markup#371 (comment)

This isn't an issue with the number of dashes used for the separator line between table head and body as mentioned in github/markup#371.

The problem is that GitBook doesn't seem to support tables nested within list items.

The following table within a list renders fine on GitHub:

  1. Download the package for your operating system from the project website:
Operating system File name
Linux or Mac OS X file.tar.gz
Windows file.zip
  1. Extract the contents of the package to the directory.

but in GitBook, the table is not recognized, and renders the dashes and pipe symbols literally:

<ul>
  <li>
    <p>Download the package for your operating system from the project website.</p>
    <p>|Operating system|File name|
      |----------------|---------|
      |Linux or Mac OS X|file.tar.gz|
      |Windows|file.zip|</p>
  </li>
  <li>
    <p>Extract the contents of the package to the directory.</p>
  </li>
</ul>

OK. Thanks.

+1. Met the same problem. Any plan to support table nested in list?

+1. Met the same problem.

+1. Met the same problem.

+1. Met the same problem.

+1. The same problem. So I use HTML in Markdown.

akuma commented

+1