import { patternInScope as e } from "../util/pattern-in-scope.js";
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/break.js
function t(t, n, r, i) {
	let a = -1;
	for (; ++a < r.unsafe.length;) if (r.unsafe[a].character === "\n" && e(r.stack, r.unsafe[a])) return /[ \t]/.test(i.before) ? "" : " ";
	return "\\\n";
}
//#endregion
export { t as hardBreak };
