From fa1968ad610c9414c900ae3c6ff30df985359627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=9F=B3=E5=A4=B4?= Date: Wed, 7 Aug 2024 10:23:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=89=E9=92=89=E5=8F=91=E9=80=81Markdown?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=97=B6=EF=BC=8C=E8=A6=81FormatMarkdown?= =?UTF-8?q?=E9=A2=84=E5=A4=84=E7=90=86=EF=BC=8C**=E5=90=8E=E9=9D=A2?= =?UTF-8?q?=E4=BF=9D=E7=95=99=E4=B8=80=E4=B8=AA=E7=A9=BA=E6=A0=BC=EF=BC=8C?= =?UTF-8?q?=E5=90=A6=E5=88=99=E4=BC=9A=E7=B2=98=E7=B2=98=E5=9C=A8=E4=B8=80?= =?UTF-8?q?=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Stardust/DingTalk/DingTalkClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Stardust/DingTalk/DingTalkClient.cs b/Stardust/DingTalk/DingTalkClient.cs index ab5103e5..15b8a588 100644 --- a/Stardust/DingTalk/DingTalkClient.cs +++ b/Stardust/DingTalk/DingTalkClient.cs @@ -63,9 +63,9 @@ public void SendText(String content, String[] mentions) public String FormatMarkdown(String text) { // 换行 - text = text.Replace(Environment.NewLine, "\n\n"); + text = text.Replace(Environment.NewLine, " \n "); // 经测试 手机不支持
后期支持了再删除 这要在放在处理完换行以后 - text = text.Replace("
", "\n"); + text = text.Replace("
", " \n "); // 经测试 手机不支持 只支持HEX值 text = text.Replace("", "");