mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 22:38:56 +08:00
Merge branch 'canary' into stable
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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