Skip to content

Commit 971b86d

Browse files
author
Felix Hennig
committed
more updates
1 parent 6fc2cfc commit 971b86d

File tree

5 files changed

+98
-119
lines changed

5 files changed

+98
-119
lines changed

js/doc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import DOMPurify from 'dompurify'
66
import { html } from 'htm/react'
77
import halfmoon from 'halfmoon'
88
import slugify from 'slugify'
9-
import marked from 'marked'
9+
import { marked } from 'marked'
1010

1111
// Syntax highlighting imports
1212
import { getHighlighterCore } from 'shikiji/core'
@@ -57,7 +57,7 @@ function getDescription(schema) {
5757
if (desc.trim() == '') {
5858
desc = '_No Description Provided._'
5959
}
60-
return DOMPurify.sanitize(marked(desc));
60+
return DOMPurify.sanitize(marked.parse(desc));
6161
}
6262

6363
function CRD() {

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,15 @@
88
},
99
"devDependencies": {
1010
"esbuild": "^0.19.10",
11-
"esbuild-plugin-prismjs": "^1.0.8",
1211
"shikiji": "^0.9.11"
1312
},
1413
"dependencies": {
15-
"clipboard": "2.0.6",
16-
"date-fns": "^3.0.6",
17-
"dompurify": "2.2.2",
14+
"clipboard": "2.0.11",
15+
"dompurify": "3.0.6",
1816
"eventemitter3": "5.0.1",
1917
"halfmoon": "^1.1.1",
2018
"htm": "3",
21-
"marked": "1.2.4",
22-
"prismjs": "^1.29.0",
19+
"marked": "11.1.0",
2320
"react": "16",
2421
"react-dom": "16",
2522
"react-table": "7",

pnpm-lock.yaml

Lines changed: 13 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/doc.js

Lines changed: 76 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/doc.js.map

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)