UNPKG

svem

Version:

Svelte in Markdown preprocessor

18 lines (15 loc) 567 B
import { Plugin } from 'unified'; import { Node } from 'mdast'; type XMultiAttributes = Array<string | boolean | number>; type XAttributes = Record<string, string | boolean | number | XMultiAttributes>; type XNode = Node & { type: string; attributes: XAttributes; name?: string; meta?: string; value?: string; children?: XNode[]; }; declare const remarkAttributes: Plugin<[], XNode>; declare const getAttributes: (meta: string) => XAttributes; export { type XAttributes, type XMultiAttributes, type XNode, getAttributes, remarkAttributes };