markup icon indicating copy to clipboard operation
markup copied to clipboard

Table in List

Open FranklinYu opened this issue 11 years ago • 2 comments

Tables in lists are not supported, e.g.,

1. item
   header 1    | header 2
   ----------- | -----------
   content 1.1 | content 2.1
   content 1.2 | content 2.2

renders

  1. item
    header 1 header 2
    content 1.1 content 2.1
    content 1.2 content 2.2

FranklinYu avatar Jun 11 '15 01:06 FranklinYu

It looks like this is working now given the table rending in your issue above. If you'd like 'item' to not be in the table, you'll need to add a newline:

1. item

   header 1    | header 2
   ----------- | -----------
   content 1.1 | content 2.1
   content 1.2 | content 2.2
  1. item
    header 1 header 2
    content 1.1 content 2.1
    content 1.2 content 2.2

shawnajean avatar Mar 22 '17 21:03 shawnajean

Fantastic. CommanMark solves a lot of things like this!

FranklinYu avatar Mar 23 '17 03:03 FranklinYu