gatsby-remark-relative-images
Version:
Convert image src(s) in markdown to be relative to their node's parent directory. This will help gatsby-remark-images match images outside the node folder. For example, use with NetlifyCMS.
10 lines (9 loc) • 367 B
TypeScript
import { PluginOptions, GatsbyFile, MarkdownNode } from '.';
export type GatsbyPluginArgs = {
node: MarkdownNode;
getNodesByType: (type: string) => GatsbyFile[];
reporter: {
info: (msg: string, error?: Error) => void;
};
};
export declare const onCreateNode: ({ node, getNodesByType }: GatsbyPluginArgs, pluginOptions: PluginOptions) => void;