inlineCode.peek = inlineCodePeek;
function inlineCode(e, t, n) {
	let r = e.value || "", i = "`", a = -1;
	for (; (/* @__PURE__ */ RegExp("(^|[^`])" + i + "([^`]|$)")).test(r);) i += "`";
	for (/[^ \r\n]/.test(r) && (/^[ \r\n]/.test(r) && /[ \r\n]$/.test(r) || /^`|`$/.test(r)) && (r = " " + r + " "); ++a < n.unsafe.length;) {
		let e = n.unsafe[a], t = n.compilePattern(e), i;
		if (e.atBreak) for (; i = t.exec(r);) {
			let e = i.index;
			r.charCodeAt(e) === 10 && r.charCodeAt(e - 1) === 13 && e--, r = r.slice(0, e) + " " + r.slice(i.index + 1);
		}
	}
	return i + r + i;
}
function inlineCodePeek() {
	return "`";
}
export { inlineCode };
