2.0.10 • Published 1 month ago

@types/markdown-it-container v2.0.10

Weekly downloads
5,007
License
MIT
Repository
github
Last release
1 month ago

Installation

npm install --save @types/markdown-it-container

Summary

This package contains type definitions for MarkdownItContainer (markdown-it-container) (https://github.com/markdown-it/markdown-it-container).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/markdown-it-container.

index.d.ts

// 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.3

import MarkdownIt = require('markdown-it');
import Renderer = require('markdown-it/lib/renderer');
import Token = require('markdown-it/lib/token');

declare namespace markdownItContainer {
    interface ContainerOpts {
        marker?: string | undefined;
        validate?(params: string): boolean;
        render?(tokens: Token[], index: number, options: any, env: any, self: Renderer): string;
    }

    function container_plugin(md: MarkdownIt, name: string, opts: ContainerOpts): void;
}

declare var MarkdownItContainer: typeof markdownItContainer.container_plugin;
export = MarkdownItContainer;

Additional Details

  • Last updated: Fri, 21 Jan 2022 17:01:37 GMT
  • Dependencies: @types/markdown-it
  • Global values: none

Credits

These definitions were written by Vyacheslav Demot.