MCPcopy
hub / github.com/vercel/streamdown / handleRawNode

Function handleRawNode

packages/streamdown/lib/markdown.ts:236–248  ·  view source on GitHub ↗
(
  parent: Parents,
  index: number,
  skipHtml: boolean | undefined,
  value: string
)

Source from the content-addressed store, hash-verified

234
235/* v8 ignore next */
236const handleRawNode = (
237 parent: Parents,
238 index: number,
239 skipHtml: boolean | undefined,
240 value: string
241): void => {
242 /* v8 ignore next 5 */
243 if (skipHtml) {
244 parent.children.splice(index, 1);
245 } else {
246 parent.children[index] = { type: "text", value } as never;
247 }
248};
249
250const transformUrls = (node: Element, transform: UrlTransform): void => {
251 for (const key in urlAttributes) {

Callers 1

postFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected