Noosphere Possibilities Maximized

    @types/markdown-it-container
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.5 • Public • Published

    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.

    Keywords

    none

    Install

    npm i @types/markdown-it-container

    DownloadsWeekly Downloads

    4,382

    Version

    2.0.5

    License

    MIT

    Unpacked Size

    4.61 kB

    Total Files

    4

    Last publish

    Collaborators

    • types