mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-26 04:50:18 +00:00
perf: md消息支持html代码
This commit is contained in:
parent
be527355ee
commit
bbf9107560
5
resources/assets/js/store/markdown.js
vendored
5
resources/assets/js/store/markdown.js
vendored
@ -261,7 +261,10 @@ export function MarkdownConver(text) {
|
||||
}
|
||||
if (MarkdownUtils.mdi === null) {
|
||||
MarkdownUtils.mdi = new MarkdownIt({
|
||||
linkify: true,
|
||||
html: true,
|
||||
breaks: true,
|
||||
linkify: false,
|
||||
typographer: true,
|
||||
highlight(code, language) {
|
||||
const validLang = !!(language && hljs.getLanguage(language))
|
||||
if (validLang) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user