MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / flushList

Function flushList

src/ifcchat/app.js:274–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272 };
273
274 const flushList = () => {
275 if (!listItems.length || !listType) return;
276 const items = listItems.map((item) => `<li>${renderInlineMarkdown(item)}</li>`).join("");
277 html.push(`<${listType}>${items}</${listType}>`);
278 listType = null;
279 listItems = [];
280 };
281
282 const flushAll = () => {
283 flushParagraph();

Callers 2

flushAllFunction · 0.85
renderMarkdownFunction · 0.85

Calls 4

renderInlineMarkdownFunction · 0.85
joinMethod · 0.45
mapMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected