import { toHast as e } from "../../mdast-util-to-hast/lib/index.js";
//#region ../../node_modules/remark-rehype/lib/index.js
function t(t, n) {
	return t && "run" in t ? async function(r, i) {
		let a = e(r, {
			file: i,
			...n
		});
		await t.run(a, i);
	} : function(r, i) {
		return e(r, {
			file: i,
			...t || n
		});
	};
}
//#endregion
export { t as default };
