chore: bump up marked version to v11 (#5200)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [marked](https://marked.js.org) ([source](https://togithub.com/markedjs/marked)) | [`^9.1.2` -> `^11.0.0`](https://renovatebot.com/diffs/npm/marked/9.1.6/11.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/marked/11.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/marked/11.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/marked/9.1.6/11.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/marked/9.1.6/11.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>markedjs/marked (marked)</summary>

### [`v11.0.0`](https://togithub.com/markedjs/marked/releases/tag/v11.0.0)

[Compare Source](https://togithub.com/markedjs/marked/compare/v10.0.0...v11.0.0)

##### Bug Fixes

-   clean up rules so they can be typed ([#&#8203;3087](https://togithub.com/markedjs/marked/issues/3087)) ([175fc0c](175fc0c321))
-   fix marked types ([#&#8203;3103](https://togithub.com/markedjs/marked/issues/3103)) ([edae309](edae309505))

##### BREAKING CHANGES

-   Lexer.rules object has been changed so it can be properly types. Some intermediate rules have been removed.

### [`v10.0.0`](https://togithub.com/markedjs/marked/releases/tag/v10.0.0)

[Compare Source](https://togithub.com/markedjs/marked/compare/v9.1.6...v10.0.0)

##### Bug Fixes

-   run spec tests with testutils ([#&#8203;3017](https://togithub.com/markedjs/marked/issues/3017)) ([014d4e6](014d4e61f6))

##### BREAKING CHANGES

-   drop support for node v16

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODEuMyIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSJ9-->
This commit is contained in:
LongYinan 2023-12-11 07:13:01 +00:00
parent 4de832d69d
commit 8a22fbbec2
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99
3 changed files with 13 additions and 16 deletions

View File

@ -21,7 +21,7 @@
"clsx": "^2.0.0",
"idb": "^8.0.0",
"langchain": "^0.0.166",
"marked": "^9.1.2",
"marked": "^11.0.0",
"marked-gfm-heading-id": "^3.1.0",
"marked-mangle": "^1.1.4",
"zod": "^3.22.4"

View File

@ -23,7 +23,13 @@ export interface ConversationProps {
}
export const Conversation = (props: ConversationProps): ReactElement => {
const html = useMemo(() => marked.parse(props.text), [props.text]);
const html = useMemo(
() =>
marked.parse(props.text, {
async: false,
}) as string,
[props.text]
);
return (
<div
className={clsx(styles.containerStyle, {

View File

@ -324,7 +324,7 @@ __metadata:
idb: "npm:^8.0.0"
jotai: "npm:^2.5.1"
langchain: "npm:^0.0.166"
marked: "npm:^9.1.2"
marked: "npm:^11.0.0"
marked-gfm-heading-id: "npm:^3.1.0"
marked-mangle: "npm:^1.1.4"
react: "npm:18.2.0"
@ -27008,12 +27008,12 @@ __metadata:
languageName: node
linkType: hard
"marked@npm:*":
version: 10.0.0
resolution: "marked@npm:10.0.0"
"marked@npm:*, marked@npm:^11.0.0":
version: 11.0.0
resolution: "marked@npm:11.0.0"
bin:
marked: bin/marked.js
checksum: f7442f6bd6a678e48eb3ca2f4b15e6d80ce63fa8363d319733ad7d968cfea410eacd01e764dc76c59d7ff77d409007bf5628d215ec84ef4ffa65f44ae08f0255
checksum: bc533791a77a041291a92f91083482a95d59767c4adaf39c4aa3008400446e586933578065ceb4c66c340aed0fb13a61b489d7d88adfbecda7c8ed7bfcead102
languageName: node
linkType: hard
@ -27026,15 +27026,6 @@ __metadata:
languageName: node
linkType: hard
"marked@npm:^9.1.2":
version: 9.1.6
resolution: "marked@npm:9.1.6"
bin:
marked: bin/marked.js
checksum: 29d073500c70b6b53cd35a8d19f5e43df6e2819ddeca8848a31901b87b82ca0ea46a8a831920c656c69c33ad5dce4b75654c4c4ced34a67f4e4e4a31c7620cfe
languageName: node
linkType: hard
"matcher@npm:^3.0.0":
version: 3.0.0
resolution: "matcher@npm:3.0.0"