mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
🛠️ Create rehypeCopyBtn & rehypeExternalLinks with custom types
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
Reference in New Issue
Block a user