Skip to content

Commit 02bdca2

Browse files
committed
Adds the remark-gfm package to transform markdown tables into their HTML equivalent
1 parent 3efb197 commit 02bdca2

File tree

3 files changed

+641
-1159
lines changed

3 files changed

+641
-1159
lines changed

contentlayer.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import rehypePrism from "@mapbox/rehype-prism";
2+
import remarkGfm from 'remark-gfm'
23
import { defineDocumentType, makeSource } from "contentlayer/source-files";
34
import removeMarkdown from "remove-markdown";
45
import siteConfig from "./site.config";
@@ -141,5 +142,6 @@ export default makeSource({
141142
documentTypes: [Post, Job],
142143
mdx: {
143144
rehypePlugins: [rehypePrism],
145+
remarkPlugins: [remarkGfm],
144146
},
145147
});

0 commit comments

Comments
 (0)