Skip to content

Commit

Permalink
chore(deps): bump markdown dependencies (#9980)
Browse files Browse the repository at this point in the history
* chore(deps): bump unified from 10.1.2 to 11.0.4
* chore(deps): bump remark-gfm from 3.0.1 to 4.0.0
* chore(deps): bump remark-parse from 10.0.2 to 11.0.0
* chore(deps): bump remark-rehype from 10.1.0 to 11.0.0
* chore(deps): bump rehype-format from 4.0.1 to 5.0.0
* chore(deps): bump rehype-stringify from 9.0.4 to 10.0.0
* chore(deps): bump react-markdown from 8.0.7 to 9.0.0
* fix(ai-help): migrate to react-markdown v9
  • Loading branch information
caugner authored Nov 10, 2023
1 parent 209ef20 commit 49979f1
Show file tree
Hide file tree
Showing 4 changed files with 307 additions and 597 deletions.
4 changes: 2 additions & 2 deletions client/src/plus/ai-help/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ export function AIHelpInner() {
</div>
);
},
code: ({ inline, className, children, ...props }) => {
code: ({ className, children, ...props }) => {
const match = /language-(\w+)/.exec(
className || ""
);
const lang = Prism.languages[match?.[1]];
return !inline && lang ? (
return lang ? (
<code
{...props}
className={className}
Expand Down
1 change: 0 additions & 1 deletion markdown/m2h/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function makeProcessor(options: ProcessorOptions) {
const processor = unified()
.use(parse)
.use(gfm)
// @ts-expect-error Need to investigate why types don't seem to match.
.use(remarkRehype, {
handlers: localizedHandlers,
allowDangerousHtml: true,
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,22 @@
"openai": "^4.17.3",
"prism-svelte": "^0.5.0",
"prismjs": "^1.29.0",
"react-markdown": "^8.0.7",
"react-markdown": "^9.0.0",
"react-modal": "^3.16.1",
"read-chunk": "^4.0.3",
"rehype-format": "^4.0.1",
"rehype-format": "^5.0.0",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
"rehype-stringify": "^9.0.4",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.2",
"remark-rehype": "^10.1.0",
"rehype-stringify": "^10.0.0",
"remark-gfm": "^4.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.0.0",
"sanitize-filename": "^1.6.3",
"send": "^0.18.0",
"source-map-support": "^0.5.21",
"sse.js": "^1.0.0",
"tempy": "^3.1.0",
"unified": "^10.1.2",
"unified": "^11.0.4",
"unist-builder": "^4.0.0",
"unist-util-visit": "^5.0.0",
"web-features": "^0.4.1",
Expand Down
Loading

0 comments on commit 49979f1

Please sign in to comment.