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.

36 lines (35 loc) 983 B
import m from "./ruler.mjs"; import n from "./rules_core/state_core.mjs"; import p from "./rules_core/normalize.mjs"; import s from "./rules_core/block.mjs"; import f from "./rules_core/inline.mjs"; import u from "./rules_core/linkify.mjs"; import a from "./rules_core/replacements.mjs"; import c from "./rules_core/smartquotes.mjs"; import h from "./rules_core/text_join.mjs"; const t = [ ["normalize", p], ["block", s], ["inline", f], ["linkify", u], ["replacements", a], ["smartquotes", c], // `text_join` finds `text_special` tokens (for escape sequences) // and joins them with the rest of the text ["text_join", h] ]; function i() { this.ruler = new m(); for (let r = 0; r < t.length; r++) this.ruler.push(t[r][0], t[r][1]); } i.prototype.process = function(r) { const e = this.ruler.getRules(""); for (let o = 0, l = e.length; o < l; o++) e[o](r); }; i.prototype.State = n; export { i as default }; //# sourceMappingURL=parser_core.mjs.map