()
| 79 | let pendingBlankLines = 0; |
| 80 | |
| 81 | const flushList = () => { |
| 82 | if (!listType || listItems.length === 0) { |
| 83 | listType = null; |
| 84 | listItems = []; |
| 85 | return; |
| 86 | } |
| 87 | |
| 88 | htmlParts.push(`<${listType}>${listItems.join('')}</${listType}>`); |
| 89 | hasRenderedBlock = true; |
| 90 | listType = null; |
| 91 | listItems = []; |
| 92 | }; |
| 93 | |
| 94 | const flushPendingEmptyParagraphs = () => { |
| 95 | if (!hasRenderedBlock || pendingBlankLines === 0) { |
no test coverage detected