Skip to content

Commit 89278fc

Browse files
committed
nicer?
1 parent 55c640e commit 89278fc

1,342 files changed

Lines changed: 362928 additions & 394 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

big.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

mdx-components.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
import AnchorPdf from "@/components/pdf/AnchorPdf";
2+
import LinktoPdf from "@/components/pdf/LinktoPdf";
3+
import TocPdf from "@/components/pdf/TocPdf";
14
import type { MDXComponents } from "mdx/types";
2-
5+
import Link from "next/link";
6+
import Image from 'next/image';
37
export function useMDXComponents(components: MDXComponents): MDXComponents {
48
return {
9+
Link,
10+
Image,
11+
TocPdf,
12+
AnchorPdf,
13+
LinktoPdf,
514
...components,
615
};
716
}

next.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ if (process.env.NODE_ENV === "production") {
1818
}
1919

2020
const withMDX = createMDX({
21-
extension: /\.mdx?$/,
21+
// extension: /\.mdx?$/,
2222
options: {
23-
remarkPlugins: [remarkMath, ],
23+
remarkPlugins: ['remark-math', 'remark-gfm' ],
2424
rehypePlugins: [
25-
rehypeTypst,
25+
"@myriaddreamin/rehype-typst",
2626
[
27-
rehypeShiki,
27+
"@shikijs/rehype",
2828
{
2929
theme: "dark-plus",
3030
},

0 commit comments

Comments
 (0)