Skip to content

Commit

Permalink
Merge pull request #98 from capsloq/main
Browse files Browse the repository at this point in the history
fix tables in markdown
  • Loading branch information
sadmann7 authored Dec 3, 2023
2 parents fce0b65 + f258afa commit 01efaa1
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 156 deletions.
2 changes: 2 additions & 0 deletions contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import rehypeAutolinkHeadings from "rehype-autolink-headings"
import rehypeCodeTitles from "rehype-code-titles"
import rehypePrettyCode from "rehype-pretty-code"
import rehypeSlug from "rehype-slug"
import remarkGfm from 'remark-gfm'

const computedFields: ComputedFields = {
slug: {
Expand Down Expand Up @@ -111,6 +112,7 @@ export default makeSource({
contentDirPath: "./src/content",
documentTypes: [Post, Author, Page],
mdx: {
remarkPlugins: [[remarkGfm]],
rehypePlugins: [
[
// @ts-expect-error rehype-pretty-code has no types
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"rehype-code-titles": "^1.2.0",
"rehype-pretty-code": "^0.11.0",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.0",
"remark-gfm": "3.0.1",
"remark-math": "^6.0.0",
"tailwindcss": "^3.3.5",
"typescript": "^5.3.2",
Expand Down
Loading

1 comment on commit 01efaa1

@vercel
Copy link

@vercel vercel bot commented on 01efaa1 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.