[fix] markdown 表格内没有换行 (#1492)

This commit is contained in:
wanglong001 2023-04-17 21:10:36 +08:00 committed by GitHub
parent 7583985f44
commit 226ce2bded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ const { isMobile } = useBasicLayout()
const textRef = ref<HTMLElement>() const textRef = ref<HTMLElement>()
const mdi = new MarkdownIt({ const mdi = new MarkdownIt({
html: true,
linkify: true, linkify: true,
highlight(code, language) { highlight(code, language) {
const validLang = !!(language && hljs.getLanguage(language)) const validLang = !!(language && hljs.getLanguage(language))