[GH-ISSUE #964] [Bug] 发送的Hook通知参数 \n 会被转成 \\n #656

Closed
opened 2026-03-03 01:05:01 +03:00 by kerem · 3 comments
Owner

Originally created by @lihawhaw on GitHub (Sep 14, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/964

软件版本 / Release Version

v0.4.0-rc1

缺陷描述 / Description

自定义Hook的参数 \n\n 会被转成 \\n\\n,导致显示的Markdown消息没有换行,而是显示文字 \n\n
Image

复现步骤 / Steps to reproduce

  1. 创建自定义Hook
  2. 消息中使用 \n\n 换行符

日志 / Logs

Image

其他 / Miscellaneous

No response

贡献 / Contribution

  • 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
Originally created by @lihawhaw on GitHub (Sep 14, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/964 ### 软件版本 / Release Version v0.4.0-rc1 ### 缺陷描述 / Description 自定义Hook的参数 `\n\n` 会被转成 `\\n\\n`,导致显示的Markdown消息没有换行,而是显示文字 `\n\n`。 <img width="732" height="1045" alt="Image" src="https://github.com/user-attachments/assets/6ba84771-48df-4cd6-9eed-7e7baac51187" /> ### 复现步骤 / Steps to reproduce 1. 创建自定义Hook 2. 消息中使用 `\n\n` 换行符 ### 日志 / Logs <details> <img width="682" height="225" alt="Image" src="https://github.com/user-attachments/assets/40092f60-b6dd-4d67-b995-16f765bba463" /> </details> ### 其他 / Miscellaneous _No response_ ### 贡献 / Contribution - [ ] 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
kerem 2026-03-03 01:05:01 +03:00
Author
Owner

@fudiwei commented on GitHub (Sep 14, 2025):

直接回车就好了呀

<!-- gh-comment-id:3289336978 --> @fudiwei commented on GitHub (Sep 14, 2025): 直接回车就好了呀
Author
Owner

@lihawhaw commented on GitHub (Sep 14, 2025):

@fudiwei 不行,Server酱需要 \n\n

https://doc.sc3.ft07.com/zh/serverchan3/faq

Image
<!-- gh-comment-id:3289359359 --> @lihawhaw commented on GitHub (Sep 14, 2025): @fudiwei 不行,Server酱需要 `\n\n` https://doc.sc3.ft07.com/zh/serverchan3/faq <img width="1418" height="1178" alt="Image" src="https://github.com/user-attachments/assets/dfc87267-783f-42ce-85f5-e428effcec1c" />
Author
Owner

@fudiwei commented on GitHub (Sep 15, 2025):

敲两个回车……

<!-- gh-comment-id:3290263554 --> @fudiwei commented on GitHub (Sep 15, 2025): 敲两个回车……
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#656
No description provided.