remorses / dokz

Effortless documentation with Next.js and MDX
466 stars 40 forks source link

MDX List rendering is wrong #9

Closed crubier closed 4 years ago

crubier commented 4 years ago

This code in Dokz:

Screenshot 2020-06-17 at 14 35 44

Renders to this:

Screenshot 2020-06-17 at 14 35 30

But on a normal markdown renderer like github, this code:

And here is a numbered list:

1. Coucou
2. Toutou

And a nested bulleted list:

  - Lol Lol Lol Lol Lol Lol
    - Lol Lol Lol Lol Lol Lol
    - Yup Yup Yup Yup Yup Yup
      - Lol Lol Lol Lol Lol Lol
    - Yup Yup Yup Yup Yup Yup
  - Yup Yup Yup Yup Yup Yup
    - Lol Lol Lol Lol Lol Lol
      - Lol Lol Lol Lol Lol Lol
      - Yup Yup Yup Yup Yup Yup
    - Lol Lol Lol Lol Lol Lol
    - Yup Yup Yup Yup Yup Yup
  - Yup Yup Yup Yup Yup Yup

Should render to this:

And here is a numbered list:

  1. Coucou
  2. Toutou

And a nested bulleted list:

remorses commented 4 years ago

Added new list features in version 1.0.35

Schermata 2020-06-18 alle 20 24 53

The internal list type is not super pretty, let me know if you find a better icon

crubier commented 4 years ago

👍 Excellent it works !