Something went wrong. Try again.
forked from furiouzz/lume_shiki
Something went wrong. Try again.
123456789101112export function insertToHead(document: Document, newNode: Node) { for (const node of document.head.childNodes) { if ( node.nodeType === document.COMMENT_NODE && node.textContent?.trim() === "shiki-imports" ) { document.head.insertBefore(newNode, node); break; } }}