vue-files-preview-inno
Version:
A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.
29 lines (28 loc) • 673 B
JavaScript
import { isSpace as h } from "../common/utils.mjs";
function d(r, n, m, i) {
const l = r.eMarks[n];
if (r.sCount[n] - r.blkIndent >= 4)
return !1;
let e = r.bMarks[n] + r.tShift[n];
const o = r.src.charCodeAt(e++);
if (o !== 42 && o !== 45 && o !== 95)
return !1;
let f = 1;
for (; e < l; ) {
const u = r.src.charCodeAt(e++);
if (u !== o && !h(u))
return !1;
u === o && f++;
}
if (f < 3)
return !1;
if (i)
return !0;
r.line = n + 1;
const c = r.push("hr", "hr", 0);
return c.map = [n, r.line], c.markup = Array(f + 1).join(String.fromCharCode(o)), !0;
}
export {
d as default
};
//# sourceMappingURL=hr.mjs.map