GitbookIO / kramed

A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
MIT License
223 stars 47 forks source link

Rendering the table in list #47

Open xiaohaoliang opened 6 years ago

xiaohaoliang commented 6 years ago

The following markdown text doesn't work:

1. this is a
   - this is b1

   | Name | age|
   |----  |----|
   | Tom  | 16 |

   - this is b2
   - this is b3

It should be rendered to:

  1. this is a

    • this is b1
    Name age
    Tom 16
    • this is b2
    • this is b3

The actual output is as follows

  1. this is a

    • this is b1

    | Name | age| |---- |----| | Tom | 16 |

    • this is b2
    • this is b3

related issue

https://github.com/markedjs/marked/issues/1246

https://github.com/GitbookIO/gitbook/issues/794