npm.io
3.0.5 • Published 2 years ago

@types/markdown-it-link-attributes

Licence
MIT
Version
3.0.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/markdown-it-link-attributes

Summary

This package contains type definitions for markdown-it-link-attributes (https://github.com/crookedneighbor/markdown-it-link-attributes).

Details

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

index.d.ts

import { PluginWithOptions, Renderer } from "markdown-it";

declare namespace markdownItLinkAttributes {
    interface Config {
        attrs: Record<string, string>;
    }
}

/**
 * Link attributes plugin for markdown-it markdown parser
 */
declare const markdownItLinkAttributes:
    & PluginWithOptions<
        markdownItLinkAttributes.Config | markdownItLinkAttributes.Config[]
    >
    & {
        readonly defaultRender: Renderer.RenderRule;
    };

export = markdownItLinkAttributes;

Additional Details

Credits

These definitions were written by Katy Richard, and Piotr Błażejewicz.