import "../../devlop/lib/default.js";
import { footer as e } from "./footer.js";
import { createState as t } from "./state.js";
//#region ../../node_modules/mdast-util-to-hast/lib/index.js
function n(n, r) {
	let i = t(n, r), a = i.one(n, void 0), o = e(i), s = Array.isArray(a) ? {
		type: "root",
		children: a
	} : a || {
		type: "root",
		children: []
	};
	return o && ("children" in s, s.children.push({
		type: "text",
		value: "\n"
	}, o)), s;
}
//#endregion
export { n as toHast };
