(e)
| 595 | } |
| 596 | } |
| 597 | heading(e) { |
| 598 | let t = this.rules.block.heading.exec(e); |
| 599 | if (t) { |
| 600 | let n = t[2].trim(); |
| 601 | if (this.rules.other.endingHash.test(n)) { |
| 602 | let s = A(n, "#"); |
| 603 | (this.options.pedantic || |
| 604 | !s || |
| 605 | this.rules.other.endingSpaceChar.test(s)) && |
| 606 | (n = s.trim()); |
| 607 | } |
| 608 | return { |
| 609 | type: "heading", |
| 610 | raw: t[0], |
| 611 | depth: t[1].length, |
| 612 | text: n, |
| 613 | tokens: this.lexer.inline(n), |
| 614 | }; |
| 615 | } |
| 616 | } |
| 617 | hr(e) { |
| 618 | let t = this.rules.block.hr.exec(e); |
| 619 | if (t) |
no test coverage detected