diff --git a/deno.json b/deno.json index ce614df6e..0dec0ba7f 100644 --- a/deno.json +++ b/deno.json @@ -12,8 +12,7 @@ }, "imports": { "@app/": "./", - "preact": "npm:preact@^10.24.1", - "prismjs": "npm:prismjs@^1.29.0" + "preact": "npm:preact@^10.24.1" }, "compilerOptions": { "jsx": "react-jsx", diff --git a/middleware/markdown/deps.ts b/middleware/markdown/deps.ts index 64c8f5e69..99bf001fa 100644 --- a/middleware/markdown/deps.ts +++ b/middleware/markdown/deps.ts @@ -1,4 +1,4 @@ export { CSS, render } from "jsr:@deno/gfm@0.6"; export { extract } from "jsr:@std/front-matter/any"; -export * as remarkToc from "https://esm.sh/v135/remark-toc@8.0.1"; -export { remark } from "https://esm.sh/v135/remark@14.0.3"; +export * as remarkToc from "npm:remark-toc@8.0.1"; +export { remark } from "npm:remark@14.0.3"; diff --git a/middleware/markdown/mod.tsx b/middleware/markdown/mod.tsx index 631e42aa2..234f4930e 100644 --- a/middleware/markdown/mod.tsx +++ b/middleware/markdown/mod.tsx @@ -2,14 +2,14 @@ import { CSS, extract, remark, render } from "./deps.ts"; import { renderToString } from "../../core/server/deps.ts"; import { Context, FunctionComponent, HttpRequest } from "../../mod.ts"; -import "prismjs/components/prism-css.min.js"; -import "prismjs/components/prism-jsx.min.js"; -import "prismjs/components/prism-typescript.min.js"; -import "prismjs/components/prism-tsx.min.js"; -import "prismjs/components/prism-bash.min.js"; -import "prismjs/components/prism-powershell.min.js"; -import "prismjs/components/prism-json.min.js"; -import "prismjs/components/prism-diff.min.js"; +import "npm:prismjs@^1.29.0/components/prism-css.min.js"; +import "npm:prismjs@^1.29.0/components/prism-jsx.min.js"; +import "npm:prismjs@^1.29.0/components/prism-typescript.min.js"; +import "npm:prismjs@^1.29.0/components/prism-tsx.min.js"; +import "npm:prismjs@^1.29.0/components/prism-bash.min.js"; +import "npm:prismjs@^1.29.0/components/prism-powershell.min.js"; +import "npm:prismjs@^1.29.0/components/prism-json.min.js"; +import "npm:prismjs@^1.29.0/components/prism-diff.min.js"; function stringToJSXElement(content: string) { return
; diff --git a/records.json b/records.json deleted file mode 100644 index 997f0ff44..000000000 --- a/records.json +++ /dev/null @@ -1 +0,0 @@ -Hello, GitHub!! \ No newline at end of file diff --git a/store.json b/store.json deleted file mode 100644 index 26476f3be..000000000 --- a/store.json +++ /dev/null @@ -1 +0,0 @@ -{"key1":{"value":"hello"},"key2":{"value":"hello2","expiry":1726575292986}} \ No newline at end of file