| | |
| | | } |
| | | |
| | | type OptionType = object | undefined |
| | | type ExternalResourcesFn = (ctx: BuildCtx) => Partial<StaticResources> | undefined |
| | | export type QuartzTransformerPlugin<Options extends OptionType = undefined> = ( |
| | | opts?: Options, |
| | | ) => QuartzTransformerPluginInstance |
| | |
| | | textTransform?: (ctx: BuildCtx, src: string) => string |
| | | markdownPlugins?: (ctx: BuildCtx) => PluggableList |
| | | htmlPlugins?: (ctx: BuildCtx) => PluggableList |
| | | externalResources?: (ctx: BuildCtx) => Partial<StaticResources> |
| | | externalResources?: ExternalResourcesFn |
| | | } |
| | | |
| | | export type QuartzFilterPlugin<Options extends OptionType = undefined> = ( |
| | |
| | | content: ProcessedContent[], |
| | | resources: StaticResources, |
| | | ): Promise<DepGraph<FilePath>> |
| | | externalResources?: ExternalResourcesFn |
| | | } |