summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-08-03 16:13:35 -0500
committerGitHub <[email protected]>2025-08-03 16:13:35 -0500
commit3b36822696442aeeb3633c20059e8407a7d31029 (patch)
tree8ae690806ea8eb4b4db21087c30ae2f64fda456a
parent5b731479d5086e5703c1d25394db73e6fb0431b8 (diff)
downloadopencode-3b36822696442aeeb3633c20059e8407a7d31029.tar.gz
opencode-3b36822696442aeeb3633c20059e8407a7d31029.zip
fix: patch marked-shiki (#1569)
-rw-r--r--package.json4
-rw-r--r--patches/[email protected]16
2 files changed, 19 insertions, 1 deletions
diff --git a/package.json b/package.json
index 7054e2871..89fc3456f 100644
--- a/package.json
+++ b/package.json
@@ -43,5 +43,7 @@
"protobufjs",
"sharp"
],
- "patchedDependencies": {}
+ "patchedDependencies": {
+ }
}
diff --git a/patches/[email protected] b/patches/[email protected]
new file mode 100644
index 000000000..36ac2befe
--- /dev/null
+++ b/patches/[email protected]
@@ -0,0 +1,16 @@
+diff --git a/node_modules/marked-shiki/.bun-tag-5eae3435af8a0229 b/.bun-tag-5eae3435af8a0229
+new file mode 100644
+index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
+diff --git a/dist/index.js b/dist/index.js
+index 535885e8569626d08f205e76c4944e4ebd0decab..92b5695c1b05fc7db5d26128c8f948d43c91f88a 100644
+--- a/dist/index.js
++++ b/dist/index.js
+@@ -4,7 +4,7 @@ function o(s = {}) {
+ async: !0,
+ async walkTokens(t) {
+ if (t.type !== "code" || typeof e != "function") return;
+- const [a = "text", ...i] = t.lang.split(" "), { text: c } = t, r = await e(c, a, i), l = n ? n.replace("%l", String(a).toUpperCase()).replace("%s", r).replace("%t", c) : r;
++ const [a = "text", ...i] = t.lang?.split(" "), { text: c } = t, r = await e(c, a, i), l = n ? n.replace("%l", String(a).toUpperCase()).replace("%s", r).replace("%t", c) : r;
+ Object.assign(t, {
+ type: "html",
+ block: !0,