remarkjs / remark-gfm

remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)

Home Page:https://remark.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ordered list is not rendered as expected using react-markdown and remark-gfm plugin

gilisho opened this issue · comments

Subject of the issue

I have users who want to render some content in an ordered list. The content looks good in Github, but when I render it with react-markdown using the remark-gfm plugin, it gets rendered wrong and the whole list is not looking as expected.

Your environment

  • Packages: react-markdown (version 5)

Steps to reproduce

Example in codesandbox.io:
https://codesandbox.io/s/react-markdown-forked-v6iy7?file=/src/App.js

Expected behavior

Should render the ordered list exactly like in Github:

1. some text
some link
2. Number two

Actual behavior

image

commented

Thanks for the report. It seems to be #3

commented

Going to close this to direct the conversation and work to GH-3.