function a(i, t) {
  let r = !1;
  const l = [];
  for (; t < i.length; ) {
    const e = i[t];
    if (r) {
      if (e[0] === "enter")
        e[1].type === "tableContent" && l.push(i[t + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
      else if (e[1].type === "tableContent") {
        if (i[t - 1][1].type === "tableDelimiterMarker") {
          const n = l.length - 1;
          l[n] = l[n] === "left" ? "center" : "right";
        }
      } else if (e[1].type === "tableDelimiterRow")
        break;
    } else e[0] === "enter" && e[1].type === "tableDelimiterRow" && (r = !0);
    t += 1;
  }
  return l;
}
export {
  a as gfmTableAlign
};
//# sourceMappingURL=infer.es.js.map
