此功能用于智能处理文本中的转义字符,并将处理后的内容渲染为 Markdown 格式。
主要特性:
\n, \t, \\ 等)或实际控制字符(如真正的换行符、制表符)\n(换行)、\r(回车)、\t(制表符)、\b(退格)、\f(换页)、\v(垂直制表符)、\\(反斜杠)、\'(单引号)、\"(双引号)、\0(空字符)使用场景:
\n 等字面转义序列字符串时,系统会将其转换为实际的换行符后再渲染This function intelligently processes escape characters in text and renders the processed content as Markdown format.
Key Features:
\n, \t, \\, etc.) or actual control characters (such as real line breaks, tabs)\n (newline), \r (carriage return), \t (tab), \b (backspace), \f (form feed), \v (vertical tab), \\ (backslash), \' (single quote), \" (double quote), \0 (null character)Use Cases:
\n, the system converts them to actual newline characters before rendering| 转义序列 / Escape Sequence | 含义 / Meaning |
|---------------------------|----------------|
| \n | 换行 / Newline |
| \r | 回车 / Carriage Return |
| \t | 制表符 / Tab |
| \b | 退格 / Backspace |
| \f | 换页 / Form Feed |
| \v | 垂直制表符 / Vertical Tab |
| \\ | 反斜杠 / Backslash |
| \' | 单引号 / Single Quote |
| \" | 双引号 / Double Quote |
| \0 | 空字符 / Null Character |