mirror of https://gitee.com/answerdev/answer.git
refactor(ui): setting marked options
This commit is contained in:
parent
8e757eadb0
commit
82106a783d
|
@ -12,6 +12,9 @@ import { marked } from 'marked';
|
||||||
import { htmlRender } from './utils';
|
import { htmlRender } from './utils';
|
||||||
|
|
||||||
let scrollTop = 0;
|
let scrollTop = 0;
|
||||||
|
marked.setOptions({
|
||||||
|
breaks: true,
|
||||||
|
});
|
||||||
|
|
||||||
const Index = ({ value }, ref) => {
|
const Index = ({ value }, ref) => {
|
||||||
const [html, setHtml] = useState('');
|
const [html, setHtml] = useState('');
|
||||||
|
|
Loading…
Reference in New Issue