astro-live-code
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "astro-live-code", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -17,4 +17,2 @@ import { visitParents as unistVisit } from 'unist-util-visit-parents' | ||
ensureImport(tree, { from: 'astro:components', name: 'Code' }) | ||
unistVisit(tree, 'code', (node, parents) => { | ||
@@ -31,3 +29,3 @@ const parent = parents[parents.length - 1] | ||
const parentId = toPOSIX( | ||
file.history[0].split(process.cwd())[1].slice(1), | ||
file.history[0].split(toPOSIX(process.cwd()))[1].slice(1), | ||
) | ||
@@ -34,0 +32,0 @@ const mdFilename = toPOSIX( |
15414
493