remark-directive-sugar
Version:
Remark plugin built on remark-directive, providing predefined directives for image captions, video embedding, styled GitHub links, badges, and more.
8 lines (7 loc) • 346 B
TypeScript
import type { Directives } from 'mdast-util-directive';
import type { LinkDirectiveConfig } from '../types.js';
/**
* Handles the `link` directive.
* Inspired by {@link https://github.com/antfu/markdown-it-magic-link markdown-it-magic-link}.
*/
export declare function handleLinkDirective(node: Directives, config: LinkDirectiveConfig): void;