svem
Version:
Svelte in Markdown preprocessor
21 lines (18 loc) • 498 B
TypeScript
import { XNode } from './attribute.js';
import { Plugin } from 'unified';
import 'mdast';
type XSection = XNode & {
type: 'directive';
name: string;
};
/**
* A remark plugin to parse directive blocks.
* @returns {(tree) => void}
*/
declare const remarkDirective: Plugin<[], XNode>;
/**
* A remark plugin to eject directive blocks.
* @returns {(tree) => void}
*/
declare const remarkDirectiveEject: Plugin<[], XNode>;
export { type XSection, remarkDirective, remarkDirectiveEject };