mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
added some markdown stylings
This commit is contained in:
parent
d786606924
commit
5dbf4245bf
4 changed files with 82 additions and 7 deletions
|
@ -1,13 +1,15 @@
|
|||
import React, { FC } from 'react';
|
||||
import { ICommentBlockProps } from '~/constants/comment';
|
||||
import styles from './styles.module.scss';
|
||||
import classNames from 'classnames';
|
||||
import markdown from '~/styles/common/markdown.module.scss';
|
||||
|
||||
interface IProps extends ICommentBlockProps {}
|
||||
|
||||
const CommentTextBlock: FC<IProps> = ({ block }) => {
|
||||
return (
|
||||
<div
|
||||
className={styles.text}
|
||||
className={classNames(styles.text, markdown.wrapper)}
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: block.content,
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue