ea6208c1f0
* deps: bump ws * deps: bump lightningcss * deps: workerpool * deps: various types * deps: chalk * deps: globby * deps: preact * deps: tsx * deps: @floating-ui/dom * deps: esbuild * deps: types + prettier * deps: rimraf, typescript * deps: remark/rehype/unified ecosystem * format
13 lines
387 B
TypeScript
13 lines
387 B
TypeScript
import { Node, Parent } from "hast"
|
|
import { Data, VFile } from "vfile"
|
|
|
|
export type QuartzPluginData = Data
|
|
export type ProcessedContent = [Node, VFile]
|
|
|
|
export function defaultProcessedContent(vfileData: Partial<QuartzPluginData>): ProcessedContent {
|
|
const root: Parent = { type: "root", children: [] }
|
|
const vfile = new VFile("")
|
|
vfile.data = vfileData
|
|
return [root, vfile]
|
|
}
|