mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-24 04:26:22 +00:00
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
12 lines
387 B
TypeScript
12 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]
|
|
}
|