Commit 25bbd90
Changed files (3)
patches/typstx.patch
@@ -0,0 +1,22 @@
+diff --git a/lib/core.js b/lib/core.js
+index e8fa3c4bb0c960916b8b5812eb2d9fac7379462d..4c33c75e99ae5046f71c7d47df31d635b2676c74 100644
+--- a/lib/core.js
++++ b/lib/core.js
+@@ -181,7 +181,7 @@ const pipelineJsx = createJsxProcessor()
+ function jsx2hast(code) {
+ const file = new VFile({value: code})
+ const result = pipelineJsx.processSync(file)
+- console.log(result.result)
++ // console.log(result.result)
+ return result.result
+ }
+
+@@ -219,7 +219,7 @@ export const rehypeTransformJsxInTypst = () => {
+ const result = compileJsx(tree)
+ if (!result.data) result.data = {}
+ result.data.jsxImports = jsxImports
+- console.log('result', result)
++ // console.log('result', result)
+ return result
+ }
+ }
pnpm-lock.yaml
@@ -4,6 +4,11 @@ settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
+patchedDependencies:
+ typstx:
+ hash: b89dc2d60b9c1a5393bbc215cd2d001481384fe5259776c02a1c4e34bce6bbae
+ path: patches/typstx.patch
+
importers:
.:
@@ -2820,7 +2825,7 @@ snapshots:
astro-integration-kit: 0.19.1(astro@6.0.3(@types/node@25.4.0)(jiti@2.6.1)(lightningcss@1.31.1)(rollup@4.59.0)(typescript@5.9.3))
cheerio: 1.2.0
rehype-stringify: 10.0.1
- typstx: 0.0.1-beta.1
+ typstx: 0.0.1-beta.1(patch_hash=b89dc2d60b9c1a5393bbc215cd2d001481384fe5259776c02a1c4e34bce6bbae)
unified: 11.0.5
transitivePeerDependencies:
- rollup
@@ -4320,7 +4325,7 @@ snapshots:
typescript@5.9.3:
optional: true
- typstx@0.0.1-beta.1:
+ typstx@0.0.1-beta.1(patch_hash=b89dc2d60b9c1a5393bbc215cd2d001481384fe5259776c02a1c4e34bce6bbae):
dependencies:
'@types/estree': 1.0.8
'@types/estree-jsx': 1.0.5
pnpm-workspace.yaml
@@ -0,0 +1,2 @@
+patchedDependencies:
+ typstx: patches/typstx.patch