lami
lami
TTCTheo's Typesafe Cult
Created by lami on 10/28/2023 in #questions
next-remote-mdx not rendering markdown table syntax
i was using react-markdown with remark-gfm and rehype-Raw were it support table syntax | Name | Age | | ---- | --- | | john | 24 | now i choose to switch to next-remote-mdx since im using mdx i have added the both plugins remark-gfm and rehype-raw but the table syntax is not recognised and its rendered as plain text Here is my next config const withMDX = createMDX({ // Add markdown plugins here, as desired options: { remarkPlugins: [remarkGfm], rehypePlugins: [rehypeRaw], }, extension: /.(md|mdx)$/, providerImportSource: '@mdx-js/react', }); export default withMDX(nextConfig);
18 replies