MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / flushList

Function flushList

deployments/desktop/static/desktop.js:2622–2627  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2620 paragraph = [];
2621 };
2622 const flushList = () => {
2623 if (!listItems.length) return;
2624 out.push(`<${listType}>${listItems.map((item) => `<li>${renderInlineMarkdown(item)}</li>`).join("")}</${listType}>`);
2625 listItems = [];
2626 listType = "";
2627 };
2628 const flushQuote = () => {
2629 if (!quoteLines.length) return;
2630 out.push(`<blockquote>${quoteLines.map((item) => `<p>${renderInlineMarkdown(item)}</p>`).join("")}</blockquote>`);

Callers 1

renderMarkdownFunction · 0.70

Calls 1

renderInlineMarkdownFunction · 0.70

Tested by

no test coverage detected