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);
Solution:Jump to solution
```
import { MDXRemote } from 'next-mdx-remote/rsc';
import remarkGfm from 'remark-gfm';
const options = {...
12 Replies
Here is the solution may it helps someone
please paste your code here as a code snippet and not screenshots
Im new to this
alrighty
still do this
also we need more context
specifically what does it look like now?
How can i add snippet
Alphr
How to Use Code Blocks in Discord
Most Discord users type and send their messages without much knowledge of coding. After all, you don't need fancy coding to talk to someone else. There are some advantages, though, to learning basic codes to make your messages stand
Ok thanks i understand
~~~
Solution
can you pls tell be how to solve this question as solved
.
thanks man