mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-29 21:17:34 +00:00
21 lines
769 B
TypeScript
21 lines
769 B
TypeScript
// Type definitions for MarkdownItContainer (markdown-it-container) 2.0
|
|
// Project: https://github.com/markdown-it/markdown-it-container
|
|
// Definitions by: Vyacheslav Demot <https://github.com/hronex>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.2
|
|
|
|
import { MarkdownIt, Token, Renderer } from 'markdown-it';
|
|
|
|
declare namespace markdownItContainer {
|
|
interface ContainerOpts {
|
|
marker?: string;
|
|
validate?(params: string): boolean;
|
|
render?(tokens: Token[], index: number, options: any, env: any, self: Renderer): void;
|
|
}
|
|
|
|
function container_plugin(md: MarkdownIt, name: string, opts: ContainerOpts): void;
|
|
}
|
|
|
|
declare var MarkdownItContainer: typeof markdownItContainer.container_plugin;
|
|
export = MarkdownItContainer;
|