✨ 迁移 Markdown 渲染并添加 Mermaid 预览和文章目录

This commit is contained in:
2026-11-15 22:05:13 +08:00
parent 293b743e50
commit 9d13e9aac2
14 changed files with 535 additions and 101 deletions
+9
View File
@@ -0,0 +1,9 @@
const KEY: InjectionKey<Ref<number>> = Symbol('navbarHeight');
export function provideNavbarHeight(h: Ref<number>) {
provide(KEY, h);
}
export function injectNavbarHeight(): Ref<number> {
return inject(KEY, ref(48));
}