u.peek = a;
function u(c, d, i) {
  let e = c.value || "", n = "`", o = -1;
  for (; new RegExp("(^|[^`])" + n + "([^`]|$)").test(e); )
    n += "`";
  for (/[^ \r\n]/.test(e) && (/^[ \r\n]/.test(e) && /[ \r\n]$/.test(e) || /^`|`$/.test(e)) && (e = " " + e + " "); ++o < i.unsafe.length; ) {
    const r = i.unsafe[o], s = i.compilePattern(r);
    let l;
    if (r.atBreak)
      for (; l = s.exec(e); ) {
        let t = l.index;
        e.charCodeAt(t) === 10 && e.charCodeAt(t - 1) === 13 && t--, e = e.slice(0, t) + " " + e.slice(l.index + 1);
      }
  }
  return n + e + n;
}
function a() {
  return "`";
}
export {
  u as inlineCode
};
//# sourceMappingURL=inline-code.es.js.map
