MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / blockquote

Method blockquote

web/marked.min.js:629–710  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

627 };
628 }
629 blockquote(e) {
630 let t = this.rules.block.blockquote.exec(e);
631 if (t) {
632 let n = A(
633 t[0],
634 `
635`,
636 ).split(`
637`),
638 s = "",
639 i = "",
640 r = [];
641 for (; n.length > 0; ) {
642 let o = !1,
643 a = [],
644 c;
645 for (c = 0; c < n.length; c++)
646 if (this.rules.other.blockquoteStart.test(n[c]))
647 (a.push(n[c]), (o = !0));
648 else if (!o) a.push(n[c]);
649 else break;
650 n = n.slice(c);
651 let p = a.join(`
652`),
653 u = p
654 .replace(
655 this.rules.other.blockquoteSetextReplace,
656 `
657 $1`,
658 )
659 .replace(this.rules.other.blockquoteSetextReplace2, "");
660 ((s = s
661 ? `${s}
662${p}`
663 : p),
664 (i = i
665 ? `${i}
666${u}`
667 : u));
668 let d = this.lexer.state.top;
669 if (
670 ((this.lexer.state.top = !0),
671 this.lexer.blockTokens(u, r, !0),
672 (this.lexer.state.top = d),
673 n.length === 0)
674 )
675 break;
676 let g = r.at(-1);
677 if (g?.type === "code") break;
678 if (g?.type === "blockquote") {
679 let T = g,
680 f =
681 T.raw +
682 `
683` +
684 n.join(`
685`),
686 y = this.blockquote(f);

Callers 2

blockTokensMethod · 0.80
parseMethod · 0.80

Calls 4

AFunction · 0.85
blockTokensMethod · 0.80
listMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected