We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-markdown: latest remark-gfm: latest
No response
import ReactMarkdown from "react-markdown"; import gfm from "remark-gfm"; const value = ` # 标题1 ## 标题2 可以的,写得不错 ## 代码 ## 图片  ## 表格 | 表头 | 表头 | | ---- | ---- | | 单元格 | 单元格 | | 单元格 | 单元格 | `; export default function App() { return ( <div> <ReactMarkdown remarkPlugins={[gfm]} children={value} /> </div> ); }
https://codesandbox.io/s/crimson-rain-uzxig?file=/src/App.js
no crash,no throw error,table render normal
Throw Error
Node v14
npm v6
macOS
Webpack
The text was updated successfully, but these errors were encountered:
Also experiencing the same problem.
It seems the issue is with remark-gfm@2.0.0. An interim solution is to downgrade to 1.0.0.
remark-gfm@2.0.0
1.0.0
Sorry, something went wrong.
@sdjnes yes,downgrade 1.0.0 works, but i think the bug needs to be fixed~
#626
Solved in 02bac83
No branches or pull requests
Initial checklist
Affected packages and versions
react-markdown: latest remark-gfm: latest
Link to runnable example
No response
Steps to reproduce
https://codesandbox.io/s/crimson-rain-uzxig?file=/src/App.js
Expected behavior
no crash,no throw error,table render normal
Actual behavior
Throw Error
Runtime
Node v14
Package manager
npm v6
OS
macOS
Build and bundle tools
Webpack
The text was updated successfully, but these errors were encountered: