@digitalocean/do-markdownit
Version:
Markdown-It plugin for the DigitalOcean Community.
19 lines (18 loc) • 471 B
TypeScript
declare namespace _exports {
export { Token, LimitTokensOptions };
}
declare const _exports: import('markdown-it').PluginWithOptions<LimitTokensOptions>;
export = _exports;
type Token = any;
type LimitTokensOptions = {
/**
* List of MD tokens allowed to render.
*/
allowedTokens?: Token.type[];
/**
* List of MD tokens to transform into something else.
*/
transformTokens?: {
[x: string]: (arg0: Token) => Token;
};
};