Skip to content

Commit

Permalink
[fix] markdown 表格内没有换行 (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglong001 authored Apr 17, 2023
1 parent 7583985 commit 226ce2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/chat/components/Message/Text.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const { isMobile } = useBasicLayout()
const textRef = ref<HTMLElement>()
const mdi = new MarkdownIt({
html: true,
linkify: true,
highlight(code, language) {
const validLang = !!(language && hljs.getLanguage(language))
Expand Down

1 comment on commit 226ce2b

@tang2330
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加了这个会导致 代码+md渲染会出现闪烁,你可以复现操作一下

问 :springboot+mybatisplus如何用将一个数据库的结果集映射为List<List>
然后回答的时候 md+代码 渲染就会出现闪烁

Please sign in to comment.