dengzedong
2025-06-11 d6fb6076423a6d97da240804b0b43f30781b5fc2
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
}
/** 初始化 **/