Skip to content

Commit

Permalink
Merge pull request #464 from fastrodev/dev2
Browse files Browse the repository at this point in the history
chore: update markdown
  • Loading branch information
ynwd authored Sep 29, 2024
2 parents 486a889 + 2b5de15 commit 940e52d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
3 changes: 1 addition & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions middleware/markdown/deps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { CSS, render } from "jsr:@deno/[email protected]";
export { extract } from "jsr:@std/front-matter/any";
export * as remarkToc from "https://esm.sh/v135/[email protected]";
export { remark } from "https://esm.sh/v135/[email protected]";
export * as remarkToc from "npm:[email protected]";
export { remark } from "npm:[email protected]";
16 changes: 8 additions & 8 deletions middleware/markdown/mod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div dangerouslySetInnerHTML={{ __html: content }} />;
Expand Down
1 change: 0 additions & 1 deletion records.json

This file was deleted.

1 change: 0 additions & 1 deletion store.json

This file was deleted.

0 comments on commit 940e52d

Please sign in to comment.