Skip to content
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

Github style table is not rendered correctly while using remark-gfm #733

Closed
4 tasks done
detectiveHLH opened this issue Mar 17, 2023 · 5 comments
Closed
4 tasks done
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on

Comments

@detectiveHLH
Copy link

Initial checklist

Affected packages and versions

react-markdown: "^8.0.5" remark-gfm: "^3.0.1"

Link to runnable example

No response

Steps to reproduce

I'm using react-gfm to render Table, I using the same markdown text in official demo, but it's not working like it.
image
It should be:
image
My code is like this:

import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
.....
<ReactMarkdown
  remarkPlugins={[remarkGfm, remarkRehype]}
>
  {mdSourceText}
</ReactMarkdown>

Expected behavior

Tables are rendered in Github style

Actual behavior

Actual like this:
image

I also using a sanbox to test it, but I got the same problem:sanbox link

Runtime

Node v17

Package manager

npm 8

OS

macOS

Build and bundle tools

Webpack

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Mar 17, 2023
@wooorm
Copy link
Member

wooorm commented Mar 17, 2023

Use CSS. You don‘t have CSS.

Duplicate of #631

@wooorm wooorm closed this as not planned Won't fix, can't repro, duplicate, stale Mar 17, 2023
@wooorm wooorm added the 👯 no/duplicate Déjà vu label Mar 17, 2023
@github-actions

This comment has been minimized.

@github-actions
Copy link

Hi! Thanks for taking the time to contribute!

Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.

Thanks,
— bb

@github-actions
Copy link

github-actions bot commented Mar 17, 2023

Hi team! It seems this post is a duplicate, but hasn’t been marked as such. Please post a comment w/ Duplicate of #123(no final .) to do so. See GH docs for more info.

Thanks,
— bb

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Mar 17, 2023
@wooorm
Copy link
Member

wooorm commented Mar 17, 2023

Duplicate of #631

@wooorm wooorm marked this as a duplicate of #631 Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants