In Markdown, how do you put a table inside an ordered list?

Another way to do this is by adding two or more spaces (according to the level of nesting) at the beginning of the rows. Therefore this:

1. Some item
2. Item with table

  | xx|yyy|
  |---|---|
  |aa|bb|
  * Nested item with table

     | xx|yyy|
     |---|---|
     |aa|bb|
3. Another item.

It should look like this:
enter image description here


I can't find a way to get it only with markdown. but you can use Inline HTML to replace ordered list, like

<ol>
<li> 1st

|xx|yyy|
|-|-|
|aa|bb|


<li>.
.
.
.

you can refer to https://stackoverflow.com/questions/19950648/how-to-write-lists-inside-a-markdown-table

Tags:

Markdown