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 #699

Closed
4 tasks done
mratzloff opened this issue Jul 5, 2022 · 4 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. You use too many pipes and no delimiter rkw

@wooorm wooorm closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2022
@github-actions

This comment has been minimized.

@wooorm wooorm added 🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on labels Jul 5, 2022
@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Jul 5, 2022
@mratzloff
Copy link
Author

@wooorm Thanks, I appreciate the fast reply. It was another table formatting syntax evidently stuck in my brain from some other project.

@plus7c
Copy link

plus7c commented Nov 20, 2024

That is not a table. You use too many pipes and no delimiter rkw

can remarkGfm render table without delimiter rkw?

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

3 participants