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.

25 lines (24 loc) 485 B
function i(n, l, c) { if (n.sCount[l] - n.blkIndent < 4) return !1; let e = l + 1, o = e; for (; e < c; ) { if (n.isEmpty(e)) { e++; continue; } if (n.sCount[e] - n.blkIndent >= 4) { e++, o = e; continue; } break; } n.line = o; const u = n.push("code_block", "code", 0); return u.content = n.getLines(l, o, 4 + n.blkIndent, !1) + ` `, u.map = [l, n.line], !0; } export { i as default }; //# sourceMappingURL=code.mjs.map