reactmarkdown using remark-gfm plugin didn't render taskslist right

21 views Asked by At

enter image description here

this renders as:

enter image description here

Why.

 <Markdown
                rehypePlugins={[rehypeRaw, rehypeKatex] as any}
                remarkPlugins={[remarkMath, remarkGfm]}
                components={{
                  img: ({ node, ...props }) => (
                    <div style={{ display: "flex", justifyContent: "center" }}>
                      <img
                        style={{ maxWidth: "100%", borderRadius: "9px" }}
                        {...props}
                      />
                    </div>
                  ),
                }}
              >
                {articleGet.content}
              </Markdown>
0

There are 0 answers