Skip to content

Commit

Permalink
feat(mdx): add remark-breaks plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Dec 2, 2022
1 parent a3471bd commit 40d1a2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contentlayer.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import remarkGfm from 'remark-gfm'
import remarkMath from 'remark-math'
import remarkBreaks from 'remark-breaks'
import rehypePrettyCode from 'rehype-pretty-code'
import rehypeSlug from 'rehype-slug'
import rehypeToc from 'rehype-toc'
Expand All @@ -15,7 +16,7 @@ export default makeSource({
contentDirPath: 'content',
documentTypes: [Post],
mdx: {
remarkPlugins: [remarkGfm, remarkMath],
remarkPlugins: [remarkGfm, remarkMath, remarkBreaks],
rehypePlugins: [
[rehypePrettyCode, rehypePrettyCodeOptions],
rehypeSlug,
Expand Down

0 comments on commit 40d1a2e

Please sign in to comment.