MCPcopy Create free account
hub / github.com/dailydotdev/apps / flushList

Function flushList

packages/shared/src/lib/markdownConversion.ts:81–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

markdownToHtmlBasicFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected