Skip to content

Commit f95e595

Browse files
committed
Added full CJK font support
1 parent 2f4590d commit f95e595

File tree

286 files changed

+4105
-71
lines changed

Some content is hidden

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

286 files changed

+4105
-71
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

assets/font-css/fang-zheng-xiao-biao-song/index.css

+1,875-15
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

assets/font-css/source-serif-screen/index.css

+1,958-16
Large diffs are not rendered by default.

components/utils/TagBadge.tsx

-13
This file was deleted.

data/posts/2024-04-17-Chinese-Japanese-Korean-Characters-Typography-Preview.md

+246

lib/rss.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { renderToString } from "react-dom/server";
99
import rehypeAutolinkHeadings from "rehype-autolink-headings";
1010
import rehypeMathJax from "rehype-mathjax/svg";
1111
import rehypePresetMinify from "rehype-preset-minify";
12+
import rehypeRaw from "rehype-raw";
1213
import rehypeSlug from "rehype-slug";
1314
import externalLinks from "remark-external-links";
1415
import remarkGfm from "remark-gfm";
@@ -65,7 +66,7 @@ export const generateRSSFeed = async () => {
6566
parseFrontmatter: true,
6667
mdxOptions: {
6768
remarkPlugins: [remarkPrism, externalLinks, remarkMath, remarkGfm],
68-
rehypePlugins: [rehypeMathJax, rehypeAutolinkHeadings, rehypeSlug, rehypePresetMinify as any],
69+
rehypePlugins: [rehypeMathJax, rehypeAutolinkHeadings, rehypeSlug, rehypePresetMinify as any, rehypeRaw],
6970
format: "md",
7071
},
7172
});

styles/font.ts

-12
This file was deleted.

styles/typesetting.css

+24-14
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
max-w-full
55
overflow-x-hidden
66
break-words
7-
8-
px-0
7+
px-0
98

109
dark:prose-invert
1110

@@ -18,32 +17,43 @@
1817

1918
prose-figure:mx-auto
2019

21-
prose-code:overflow-hidden
20+
prose-code:mx-1
21+
prose-code:overflow-hidden
22+
prose-code:rounded-md
23+
prose-code:bg-gray-100
2224

25+
prose-code:px-2
26+
prose-code:py-1
2327
prose-code:text-sky-700
24-
28+
prose-code:before:content-['']
29+
prose-code:after:content-['']
30+
prose-li:marker:text-black
2531
prose-table:mb-5
26-
prose-table:mt-0
32+
33+
prose-table:mt-0
34+
2735
prose-table:border-2
2836
prose-table:border-gray-400
37+
prose-tr:border-2
38+
prose-tr:border-gray-400
2939

30-
prose-tr:border-2
31-
prose-tr:border-gray-400
3240
prose-tr:p-2
41+
prose-th:border-2
42+
prose-th:border-gray-400
3343

34-
prose-th:border-2
35-
prose-th:border-gray-400
36-
prose-th:bg-gray-100
44+
prose-th:bg-gray-100
3745
prose-th:p-2
3846
prose-td:border-2
47+
prose-td:border-gray-400
48+
prose-td:p-2
3949

40-
prose-td:border-gray-400
41-
prose-td:p-2
4250
prose-img:mx-auto
43-
dark:prose-a:text-sky-500
44-
51+
dark:prose-a:text-sky-500
52+
prose-code:dark:bg-gray-800
4553
dark:prose-code:text-sky-500
4654

55+
dark:prose-li:marker:text-gray-100
56+
4757
dark:prose-table:border-gray-700
4858
dark:prose-tr:border-gray-700
4959
dark:prose-th:border-gray-700

0 commit comments

Comments
 (0)