UNPKG

vue-files-preview-inno

Version:

A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.

18 lines (17 loc) 560 B
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 }; //# sourceMappingURL=text_join.mjs.map