diff --git a/auto_reply.py b/auto_reply.py index 354ef4a..7178086 100644 --- a/auto_reply.py +++ b/auto_reply.py @@ -697,7 +697,8 @@ class AutoReply: if not answer: return None - # 清理 HTML 换行标签(纯文本消息里
会原形显示) + # ⭐ Task #1740: 保留 Markdown 格式(标题、列表短杠) + # 只清理影响显示的 HTML 换行标签,不破坏结构 import re answer = re.sub(r'', '\n', answer, flags=re.IGNORECASE) answer = answer.strip() @@ -711,9 +712,6 @@ class AutoReply: _keep_links = _is_download_intent and _has_url if _keep_links: logger.debug(f"[{platform}] 下载意图,保留链接格式") - - # 清理 Markdown 格式,返回纯文本(下载类保留链接) - answer = self._clean_markdown(answer, keep_links=_keep_links) if not answer: return None