React-markdown: Markdown as string not working (remark-gfm warning)

Created on 17 Oct 2020  路  2Comments  路  Source: remarkjs/react-markdown

Subject of the issue

I'm building a React app. When I install react-markdown and pass the markdown as a string it gives a console warning:

[remark-gfm] Warning: please upgrade to remark 13 to use this plugin
at ReactMarkdown

I have installed remark and it still happens.

import ReactMarkdown from 'react-markdown'
import gfm from 'remark-gfm'

// ...

<ReactMarkdown plugins={[gfm]} children={'#Hello world'}></ReactMarkdown>

Your environment

  • OS: macos Catalina
  • Packages: "remark": "^13.0.0", "react-markdown": "^4.3.1", "remark-gfm": "^1.0.0",
  • Env: node 12.18.2, npm 6.14.5

Steps to reproduce

Codesandox: https://codesandbox.io/s/react-markdown-bug-remark-gfm-13-jvi54

Expected behavior

Not showing a warning

Actual behavior

Shows incorrect warning

鉀碉笍 statureleased 馃悰 typbug

All 2 comments

Fixed in 5.0.0!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonjaffe picture jonjaffe  路  3Comments

d0lb33 picture d0lb33  路  3Comments

LinusU picture LinusU  路  3Comments

hiteshpatwari picture hiteshpatwari  路  3Comments

wqh17101 picture wqh17101  路  3Comments