function f(i) {
  let t, n;
  const c = i.tokens, s = c.length;
  for (let o = 0; o < s; o++) {
    if (c[o].type !== "inline") continue;
    const e = c[o].children, l = e.length;
    for (t = 0; t < l; t++)
      e[t].type === "text_special" && (e[t].type = "text");
    for (t = n = 0; t < l; t++)
      e[t].type === "text" && t + 1 < l && e[t + 1].type === "text" ? e[t + 1].content = e[t].content + e[t + 1].content : (t !== n && (e[n] = e[t]), n++);
    t !== n && (e.length = n);
  }
}
export {
  f as default
};
