remark-callouts
Version:
remark plugin to add support for blockquote-based admonitions/callouts
21 lines (20 loc) • 567 B
TypeScript
import type { Plugin } from 'unified';
import type { Data } from 'unist';
declare const callouts: Plugin;
export default callouts;
export interface Config {
classNameMaps: {
block: ClassNameMap;
title: ClassNameMap;
};
dataMaps: {
block: (data: Data) => Data;
title: (data: Data) => Data;
};
types: {
[index: string]: string | object;
};
}
export declare const defaultConfig: Config;
declare type ClassNames = string | string[];
declare type ClassNameMap = ClassNames | ((title: string) => ClassNames);