-
-
Notifications
You must be signed in to change notification settings - Fork 895
New issue
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
Table markdown not rendered as table #493
Comments
This is documented in the readme, several times: e.g., see here: https://github.com/remarkjs/react-markdown#use |
(and in the changelog: https://github.com/remarkjs/react-markdown/blob/main/changelog.md#upgrade-remark-parse) |
First example in https://github.com/remarkjs/react-markdown?tab=readme-ov-file#use-a-plugin includes a simple table. Table cell borders are not rendered. |
that example works perfectly! if things don’t work for you, ask a new question and provide info! |
For those who run into this issue, you have create a css file from https://github.com/micromark/micromark-extension-gfm-table#css and import it to your component. This adds styling to the otherwise bare rendered th/tr/td. I wish the demo included this information. |
Your environment
10.15.5
react-markdown@5.0.0
,react@17.0.0
12.18.4
, npm6.14.8
Steps to reproduce
Consider the following code (please read the comments):
Expected behavior
I expect tables to render correctly as
<table>
nodes. version4.3.1
behaves correctly and renders a styleless<table>
(without border).I can get the following with version
4.3.1
:Actual behavior
Since version
5.0.0
, tables no longer render correctly as a<table>
nodes but<p>
instead. Probably the markdown parser no longer recognizes table markdown syntax.Now I am getting with version
5.0.0
:The text was updated successfully, but these errors were encountered: