From bafa8e4d180423cdfe846514910e5174ebd2785e Mon Sep 17 00:00:00 2001 From: Hare Date: Wed, 18 Dec 2024 06:07:46 +0900 Subject: [PATCH] change: add rehypeAutolinkHeadings plugin to article compiler --- articles | 1 + src/lib/server/article_compiler.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 160000 articles diff --git a/articles b/articles new file mode 160000 index 0000000..6cd6a02 --- /dev/null +++ b/articles @@ -0,0 +1 @@ +Subproject commit 6cd6a02396ef9ff5786bffaf082a6e72bf1a135f diff --git a/src/lib/server/article_compiler.ts b/src/lib/server/article_compiler.ts index dbd48fe..723ab0a 100644 --- a/src/lib/server/article_compiler.ts +++ b/src/lib/server/article_compiler.ts @@ -20,6 +20,6 @@ export default async function compileArticle(code: string) { return html; }, }, - rehypePlugins: [rehypeSlug], + rehypePlugins: [rehypeAutolinkHeadings, rehypeSlug], }); } \ No newline at end of file