MCPcopy Create free account
hub / github.com/Noumena-Network/code / flushNonTableContent

Function flushNonTableContent

src/components/Markdown.tsx:123–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 const blocks: MarkdownRenderBlock[] = [];
122 let nonTableContent = "";
123 const flushNonTableContent = function flushNonTableContent() {
124 if (nonTableContent) {
125 blocks.push({
126 type: 'ansi',
127 content: nonTableContent.trim()
128 });
129 nonTableContent = "";
130 }
131 };
132 for (const token of tokens) {
133 if (token.type === "table") {
134 flushNonTableContent();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected