UNPKG

@forbespro/lead-agent

Version:
43 lines (42 loc) 1.08 kB
import { factorySpace as l } from "./index161.js"; import { markdownSpace as a } from "./index146.js"; const k = { continuation: { tokenize: Q }, exit: b, name: "blockQuote", tokenize: x }; function x(t, e, r) { const i = this; return u; function u(n) { if (n === 62) { const c = i.containerState; return c.open || (t.enter("blockQuote", { _container: !0 }), c.open = !0), t.enter("blockQuotePrefix"), t.enter("blockQuoteMarker"), t.consume(n), t.exit("blockQuoteMarker"), o; } return r(n); } function o(n) { return a(n) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(n), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), e) : (t.exit("blockQuotePrefix"), e(n)); } } function Q(t, e, r) { const i = this; return u; function u(n) { return a(n) ? l(t, o, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(n) : o(n); } function o(n) { return t.attempt(k, e, r)(n); } } function b(t) { t.exit("blockQuote"); } export { k as blockQuote };