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';
|
||||
|
||||
let scrollTop = 0;
|
||||
marked.setOptions({
|
||||
breaks: true,
|
||||
});
|
||||
|
||||
const Index = ({ value }, ref) => {
|
||||
const [html, setHtml] = useState('');
|
||||
|
|
Loading…
Reference in New Issue