import { toHast } from 'very-small-parser/lib/markdown/block/toHast';
import { block } from 'very-small-parser/lib/markdown/block';
import { fromHast } from './import-html';
export const fromMdast = (mdast, registry) => {
    const hast = toHast(mdast);
    const node = fromHast(hast, registry);
    return node;
};
export const fromMarkdown = (markdown, registry) => {
    const mdast = block.parsef(markdown);
    return fromMdast(mdast, registry);
};
//# sourceMappingURL=import-markdown.js.map