Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .yarn/install-state.gz
Binary file not shown.
24 changes: 19 additions & 5 deletions examples/app-router/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -11,17 +15,27 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./*"]
"@/*": [
"./*"
]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
22 changes: 17 additions & 5 deletions examples/pages-router/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -11,12 +15,20 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"paths": {
"@/*": ["./*"]
"@/*": [
"./*"
]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
1 change: 1 addition & 0 deletions packages/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"mdast-util-to-hast": "^13.2.0",
"next-mdx-remote-client": "^1.0.3",
"rehype-katex": "^7.0.1",
"remark-custom-header-id": "^1.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"remark-smartypants": "^3.0.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/mdx/src/client/rsc.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { MDXRemote as BaseMDXRemote, MDXComponents } from 'next-mdx-remote-client/rsc';
import { SerializeOptions } from 'next-mdx-remote-client/serialize';
import rehypeKatex from 'rehype-katex';
import remarkCustomHeaderId from 'remark-custom-header-id';
import remarkGfm from 'remark-gfm';
import remarkMath from 'remark-math';
import remarkSmartypants from 'remark-smartypants';
Expand Down Expand Up @@ -41,6 +42,7 @@ export async function MDXRemote({
remarkGfm,
remarkSmartypants,
remarkMath,
remarkCustomHeaderId,
...(mdxOptions?.remarkPlugins || []),
],
rehypePlugins: [
Expand Down
2 changes: 2 additions & 0 deletions packages/mdx/src/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { serialize as baseSerialize } from 'next-mdx-remote-client/serialize';
import rehypeKatex from 'rehype-katex';
import remarkCustomHeaderId from 'remark-custom-header-id';
import remarkGfm from 'remark-gfm';
import remarkMath from 'remark-math';
import remarkSmartypants from 'remark-smartypants';
Expand Down Expand Up @@ -30,6 +31,7 @@ export const serialize = async ({
remarkGfm,
remarkSmartypants,
remarkMath,
remarkCustomHeaderId,
...(mdxOptions?.remarkPlugins || []),
],
rehypePlugins: [
Expand Down
13 changes: 12 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@ __metadata:
react: "npm:^19.2.1"
react-dom: "npm:^19.2.1"
rehype-katex: "npm:^7.0.1"
remark-custom-header-id: "npm:^1.0.0"
remark-gfm: "npm:^4.0.0"
remark-math: "npm:^6.0.0"
remark-smartypants: "npm:^3.0.2"
Expand Down Expand Up @@ -1931,7 +1932,7 @@ __metadata:
languageName: node
linkType: hard

"@types/unist@npm:*, @types/unist@npm:^3.0.3":
"@types/unist@npm:*, @types/unist@npm:^3.0.2, @types/unist@npm:^3.0.3":
version: 3.0.3
resolution: "@types/unist@npm:3.0.3"
checksum: 10c0/2b1e4adcab78388e088fcc3c0ae8700f76619dbcb4741d7d201f87e2cb346bfc29a89003cfea2d76c996e1061452e14fcd737e8b25aacf949c1f2d6b2bc3dd60
Expand Down Expand Up @@ -7674,6 +7675,16 @@ __metadata:
languageName: node
linkType: hard

"remark-custom-header-id@npm:^1.0.0":
version: 1.0.0
resolution: "remark-custom-header-id@npm:1.0.0"
dependencies:
"@types/unist": "npm:^3.0.2"
unist-util-visit: "npm:^5.0.0"
checksum: 10c0/a8492d5921325ded03dfdccd55e0c4298390f13fcfa00545b7f5c4598bce48e093fe24a8b8c20c6ff92881bcd844de82039086583b4859bcecb84b949ff0a8f8
languageName: node
linkType: hard

"remark-gfm@npm:^4.0.0":
version: 4.0.0
resolution: "remark-gfm@npm:4.0.0"
Expand Down