dongyukun
2025-06-06 b9d0c0b5aa43658da4b66e4d66c9a9ede0b1fa08
src/components/MarkdownView/index.vue
@@ -39,7 +39,10 @@
/** 保留换行符 */
const formatContent = (text) => {
  return text.replace(/\n/g, '<br>')
  if (text) {
    return text.replace(/\n/g, '<br>')
  }
  return text
}
/** 初始化 **/