🛠️ Create rehypeCopyBtn & rehypeExternalLinks with custom types

This commit is contained in:
pheralb
2025-09-08 17:14:42 +01:00
parent 5c88b29387
commit a05e849ddb
4 changed files with 173 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
export interface UnistNode {
type: string;
name?: string;
tagName?: string;
value?: string;
properties?: Record<string, unknown>;
attributes?: {
name: string;
value: unknown;
type?: string;
}[];
children?: UnistNode[];
}
export interface UnistTree {
type: string;
children: UnistNode[];
}