Closed RazvanRauta closed 1 year ago
Run:
npm i -D remark-gfm@1.0.0
( newer version requires ESM )
Then in gatsby-config.js
update the gatsby-plugin-mdx
config like:
...
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.md`, `.mdx`],
+ mdxOptions: {
+ remarkPlugins: [
+ require('remark-gfm'), // <= was missing this
+ ],
+ },
gatsbyRemarkPlugins: [
....
],
},
},
....
Preliminary Checks
Description
Tables defined in Markdown files are displayed as paragraphs when using
gatsby-plugin-mdx
, it works as expected withgatsby-transformer-remark
.Live Demo
Repo
MD File with table
Reproduction Link
https://github.com/RazvanRauta/my-blog-starter
Steps to Reproduce
Expected Result
Display the table using the appropriate HTML tags for tables.
Actual Result
The table is displayed using
<p>
tagsEnvironment
Config Flags
No response