@mralfarrakhan/svork 0.7.1-alpha → 0.7.2-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +6 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -11402,7 +11402,12 @@ const svelteTypst = (options) => {
|
|
|
11402
11402
|
throw new Error(`[svelteTypst] HTML rendering failed for ${filename}`);
|
|
11403
11403
|
}
|
|
11404
11404
|
const htmlOutput = htmlExec.result;
|
|
11405
|
-
const
|
|
11405
|
+
const parsed = fromParse5(parseFragment(htmlOutput.body()));
|
|
11406
|
+
const outerDiv = parsed.children.find((c) => c.tagName === "div");
|
|
11407
|
+
const bodyRoot = outerDiv ? {
|
|
11408
|
+
type: "root",
|
|
11409
|
+
children: outerDiv.children
|
|
11410
|
+
} : parsed;
|
|
11406
11411
|
const vfile = new VFile();
|
|
11407
11412
|
vfile.data.fm = { ...metadata };
|
|
11408
11413
|
const transformed = await rehypeProcessor.run(bodyRoot, vfile);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mralfarrakhan/svork",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.2-alpha",
|
|
5
5
|
"description": "Svelte utilities for writing blog",
|
|
6
6
|
"author": "mralfarrakhan <alfarrakhan@gmail.com",
|
|
7
7
|
"license": "AGPL-3.0-or-later",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"rehype-slug": "^6.0.0",
|
|
52
52
|
"remark-gfm": "^4.0.1",
|
|
53
53
|
"shiki": "^4.1.0",
|
|
54
|
-
"svelte": "^5.55.
|
|
55
|
-
"tsdown": "^0.22.
|
|
54
|
+
"svelte": "^5.55.10",
|
|
55
|
+
"tsdown": "^0.22.1",
|
|
56
56
|
"typescript": "^6.0.3",
|
|
57
57
|
"unified": "^11.0.5",
|
|
58
58
|
"vitest": "^4.1.7"
|