import { markdownLineEnding, markdownSpace } from "../micromark-util-character/index.js";
import { factorySpace } from "../micromark-factory-space/index.js";
function factoryWhitespace(r, i) {
	let a;
	return o;
	function o(s) {
		return markdownLineEnding(s) ? (r.enter("lineEnding"), r.consume(s), r.exit("lineEnding"), a = !0, o) : markdownSpace(s) ? factorySpace(r, o, a ? "linePrefix" : "lineSuffix")(s) : i(s);
	}
}
export { factoryWhitespace };
