Skip to content

tables not rendering properly with V2 Webpack loader #1564

@souporserious

Description

@souporserious

Subject of the issue

Tables do not render properly in V2 using the following markup:

| Tables        |      Are      |   Cool |
| ------------- | :-----------: | -----: |
| col 3 is      | right-aligned | \$1600 |
| col 2 is      |   centered    |   \$12 |
| zebra stripes |   are neat    |    \$1 |

I tested this in the latest V1 which is working as expected.

Your environment

  • OS: macOS Catalina: 10.15.7
  • Packages: @mdx-js/loader: 2.0.0-next.9 and @mdx-js/react: 2.0.0-next.9
  • Env: Node: v14.16.1 and NextJS: 10.2.3

Steps to reproduce

Install the latest V2 release

{
  "@mdx-js/loader": "2.0.0-next.9",
  "@mdx-js/react": "2.0.0-next.9"
}

See this reproduction in a minimal NextJS app with the latest MDX V2 loader.

Expected behaviour

Should render a table with respective HTML tags.

Actual behaviour

Renders table markdown as a string in a p tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions