Skip to content

Commit

Permalink
Fix tables in docs
Browse files Browse the repository at this point in the history
* Add `remark-gfm`
  • Loading branch information
timolins committed Jul 10, 2022
1 parent d6a570c commit 696af69
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 53 deletions.
2 changes: 2 additions & 0 deletions site/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import rehypeSlug from 'rehype-slug';
import remarkGfm from 'remark-gfm';
import nextMdx from '@next/mdx';
import withPlugins from 'next-compose-plugins';

const withMDX = nextMdx({
extension: /.mdx?$/,
options: {
rehypePlugins: [rehypeSlug],
remarkPlugins: [remarkGfm],
providerImportSource: '@mdx-js/react',
},
});
Expand Down
1 change: 1 addition & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@types/react-dom": "^18.0.5",
"autoprefixer": "^10.4.7",
"next-compose-plugins": "^2.2.1",
"remark-gfm": "^3.0.1",
"tailwindcss": "^3.1.5",
"typescript": "^4.7.4"
}
Expand Down

0 comments on commit 696af69

Please sign in to comment.