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

Table doesn't render despite passing remark-gfm plugin to react-markdown component #1009

Closed
4 tasks done
mratzloff opened this issue Jul 5, 2022 · 3 comments
Closed
4 tasks done
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on

Comments

@mratzloff
Copy link

Initial checklist

Affected packages and versions

react-markdown@8.0.3, remark-gfm@3.0.1, node@18.2.0, yarn@3.2.1

Link to runnable example

https://codesandbox.io/s/determined-cdn-i27dzt?file=/src/app.tsx

Steps to reproduce

Please see the link to the CodeSandbox instance.

import Markdown from "react-markdown";
import gfm from "remark-gfm";

export default function App() {
  const md = `*This* is a test.

    || This || is || a || test ||
    |  1    |  2  |  3 |  4    |
    |  A    |  B  |  C |  D    |`;

  return (
    <Markdown children={md} remarkPlugins={[gfm]} />
  );
}

Expected behavior

The table should be rendered, as is the case in the demo. This might very well be user error, in which case any guidance would be appreciated!

Actual behavior

CodeSandbox screenshot

Note that the following issues have also been reviewed: #532, #529, #526, #525, #524, #516, and #493.

Runtime

Other (please specify in steps to reproduce)

Package manager

Other (please specify in steps to reproduce)

OS

macOS

Build and bundle tools

Create React App

@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 Jul 5, 2022
@wooorm
Copy link
Member

wooorm commented Jul 5, 2022

That is not a table, it will not render on GH either. You use too many pipes

@mratzloff
Copy link
Author

Sorry, posting to this issue tracker was an accident. It was intended for react-markdown, and has been posted there instead.

@github-actions

This comment has been minimized.

@wooorm wooorm added 👎 phase/no Post cannot or will not be acted on 🤷 no/invalid This cannot be acted upon and removed 🤞 phase/open Post is being triaged manually labels Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants