markdown: support gfm for tables
commit00e6260c8c6b34a0fc4e29719e027719f08221b2
authorMatilde Park <matilde@tlon.io>
dateFri 9 Jul 2021, 18:42 (5 years ago)
parentfc912c0
components/Markdown.js+2
@@ -1,4 +1,5 @@
11import remark from "remark";
2+import gfm from "remark-gfm";
23import slug from "remark-slug";
34import heading from "remark-heading-id";
45import html from "remark-html";
@@ -36,6 +37,7 @@ const options = {
3637export default async function Markdown({ post }) {
3738 const result = await remark()
3839 .use(html, options)
40+ .use(gfm)
3941 .use(remarkprism)
4042 .use(slug)
4143 .use(heading)