feat: Add multi-source font and style manager

Rename md-emfont to md-font with support for Google, emfont, and local
sources. Introduce article-style-manager.ts for centralized lifecycle
management of article-level styles and external stylesheet link
injection with reference counting. Refactor md-bg to use the new
manager, removing direct createEffect on article styles.
This commit is contained in:
hyper
2026-06-25 20:26:34 +08:00
parent 771fe6a112
commit 1a4ae417fe
5 changed files with 264 additions and 77 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import "./md-table";
import "./md-link";
import "./md-pins";
import "./md-bg";
import "./md-emfont";
import "./md-font";
import "./md-deck";
import "./md-commander/index";
import "./md-yarn-spinner";
@@ -22,7 +22,7 @@ export { FileTreeNode, HeadingNode } from "./FileTree";
export type { DiceProps } from "./md-dice";
export type { TableProps } from "./md-table";
export type { BgProps } from "./md-bg";
export type { EmfontProps } from "./md-emfont";
export type { FontProps } from "./md-font";
export type { YarnSpinnerProps } from "./md-yarn-spinner";
export type { TokenProps } from "./md-token";