Skip to content

Tables not rendering in MDX #748

@jsstoni

Description

@jsstoni

Hi, I'm experiencing an issue where tables written in MDX are not rendering correctly. Other Markdown elements like headings and paragraphs work fine, but tables don't appear at all in the rendered output.

Here's a simple example that doesn't work:

| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  | Content Cell  |
| Content Cell  | Content Cell  |

Is there something I'm missing in the configuration, or could this be a bug?

For reference, this is my Next.js config:

import createMDX from '@next/mdx';
import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
  pageExtensions: ['mdx', 'ts', 'tsx'],
  experimental: {
    mdxRs: true,
  },
};

const withMDX = createMDX({});

export default withMDX(nextConfig);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions