refactor(ui): setting marked options

This commit is contained in:
robin 2022-12-13 17:34:17 +08:00
parent 8e757eadb0
commit 82106a783d
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ import { marked } from 'marked';
import { htmlRender } from './utils';
let scrollTop = 0;
marked.setOptions({
breaks: true,
});
const Index = ({ value }, ref) => {
const [html, setHtml] = useState('');