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