mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
chore: bump up marked version to v11 (#5200)
[](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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 ([#​3087](https://togithub.com/markedjs/marked/issues/3087)) ([175fc0c](175fc0c321)) - fix marked types ([#​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 ([#​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:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user