Function
handleRawNode
(
parent: Parents,
index: number,
skipHtml: boolean | undefined,
value: string
)
Source from the content-addressed store, hash-verified
| 234 | |
| 235 | /* v8 ignore next */ |
| 236 | const 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 | |
| 250 | const transformUrls = (node: Element, transform: UrlTransform): void => { |
| 251 | for (const key in urlAttributes) { |
Tested by
no test coverage detected