11

As per title,

Is it possible to put a list inside a table in markdown?

I tried to search it up but could not find anything.

A Table being something like:

Fruit    |Color
---------|----------
Apples   |Red
Pears    |Green

and a list being something like

  • List item 1
  • List item 2
Scott Sauyet
  • 49,207
  • 4
  • 49
  • 103
krilovich
  • 3,475
  • 1
  • 23
  • 33
  • 1
    That does not explain how to put a list inside a table – krilovich Aug 02 '13 at 16:26
  • 2
    There are several different types of **Markdown** (like GitHub Flavored Markdown) each having its own customization to the original one from _Daring Fireball_. [Google it](https://www.google.com/search?q=custom+markdown+syntax) and have a look which one suits your needs. If you can't find it, then it might not be possible yet. _Try to create a custom version yourself_ and utilize that. This is how the other versions were created. They also needed "custom" functionality on top of the existing Markdown tool. – Markus Hofmann Aug 02 '13 at 16:41
  • Reason why I posted this was because I did a good amount of googling and nothing came up.. Assuming then that such a customization has not yet been created – krilovich Aug 02 '13 at 19:43
  • Possible duplicate of [How to write lists inside a markdown table?](https://stackoverflow.com/questions/19950648/how-to-write-lists-inside-a-markdown-table) – Syknapse Dec 10 '17 at 16:01

2 Answers2

10

You can combine HTML inside Markdown to create the list, like so:

Version | Name | Features
-------:|------|----------
1.0     |Alpha |<ul><li>Supports</li><li>lists</li><li>with HTML</li></ul>
Dorgrin
  • 101
  • 1
  • 5
-2

If I understood your question correctly, you are trying to create a list (unorganzied) inside a table. in order to that you need to create a table, and create a unorganazied list within it.

<table border="1">
<tr>
<td>Fruits</td>
<td>Colors</td>
</tr>
<tr>
<td>
    <ul>
        <li>Apples</li>
        <li>Pears</li>
    </ul>
</td>
<td>
    <ul>
        <li>Red</li>
        <li>Green</li>
    </ul>
</td>
</tr>
</table>

This is ofcourse an inapropriate explanation, I would reccomend learning properly (I really like codeacademy).

Good luck :)

user2835118
  • 944
  • 1
  • 6
  • 7