Skip to content

Commit

Permalink
fix: add remark-gfm (nodejs#5978)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd authored Oct 10, 2023
1 parent ce691f1 commit e7d6e09
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 1 deletion.
1 change: 1 addition & 0 deletions .remarkrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"plugins": [
"remark-gfm",
["remark-lint-fenced-code-flag", false],
["remark-lint-first-heading-level", false],
["remark-lint-maximum-line-length", false],
Expand Down
3 changes: 2 additions & 1 deletion next.dynamic.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { serialize } from 'next-mdx-remote/serialize';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypePrettyCode from 'rehype-pretty-code';
import rehypeSlug from 'rehype-slug';
import remarkGfm from 'remark-gfm';
import { getHighlighter } from 'shiki';
import shikiNordTheme from 'shiki/themes/nord.json';
import { VFile } from 'vfile';
Expand Down Expand Up @@ -177,7 +178,7 @@ export const generateStaticProps = async (source = '', filename = '') => {
},
],
],
remarkPlugins: [remarkHeadings],
remarkPlugins: [remarkHeadings, remarkGfm],
format: filename.includes('.mdx') ? 'mdx' : 'md',
},
});
Expand Down
Loading

0 comments on commit e7d6e09

Please sign in to comment.