Fixed topic body render (#429)

Fixed topic body render
This commit is contained in:
kvakazyambra 2024-03-26 16:57:24 +03:00 committed by GitHub
parent b84e7f43f7
commit ddaed0557d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ export const FullTopic = (props: Props) => {
return (
<div class={clsx(styles.topicHeader, 'col-md-16 col-lg-12 offset-md-4 offset-lg-6')}>
<h1>#{props.topic?.title}</h1>
<p>{props.topic?.body}</p>
<p innerHTML={props.topic?.body} />
<div class={clsx(styles.topicActions)}>
<Button
variant="primary"

View File

@ -79,7 +79,7 @@ export const TopicBadge = (props: Props) => {
</div>
}
>
<div class={clsx('text-truncate', styles.description)}>{props.topic.body}</div>
<div innerHTML={props.topic.body} class={clsx('text-truncate', styles.description)} />
</Show>
</a>
</div>