2023-07-23 07:27:41 +07:00
|
|
|
import { Node, Parent } from "hast"
|
|
|
|
import { Data, VFile } from "vfile"
|
2023-05-30 22:02:20 +07:00
|
|
|
|
|
|
|
export type QuartzPluginData = Data
|
2023-12-19 00:48:40 +07:00
|
|
|
export type ProcessedContent = [Node, VFile]
|
2023-07-01 14:03:01 +07:00
|
|
|
|
|
|
|
export function defaultProcessedContent(vfileData: Partial<QuartzPluginData>): ProcessedContent {
|
2023-07-23 07:27:41 +07:00
|
|
|
const root: Parent = { type: "root", children: [] }
|
2023-07-01 14:03:01 +07:00
|
|
|
const vfile = new VFile("")
|
|
|
|
vfile.data = vfileData
|
|
|
|
return [root, vfile]
|
|
|
|
}
|