mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
fixed image and code appearance
This commit is contained in:
parent
c383356a4c
commit
0c7ed6de99
4 changed files with 14 additions and 5 deletions
|
@ -3,6 +3,7 @@ import { ICommentBlockProps } from '~/constants/comment';
|
|||
import styles from './styles.module.scss';
|
||||
import classNames from 'classnames';
|
||||
import markdown from '~/styles/common/markdown.module.scss';
|
||||
import { formatText } from '~/utils/dom';
|
||||
|
||||
interface IProps extends ICommentBlockProps {}
|
||||
|
||||
|
@ -11,7 +12,7 @@ const CommentTextBlock: FC<IProps> = ({ block }) => {
|
|||
<div
|
||||
className={classNames(styles.text, markdown.wrapper)}
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: block.content,
|
||||
__html: formatText(block.content),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue