towxml icon indicating copy to clipboard operation
towxml copied to clipboard

加粗语法如果里面有中文引号和括号,会有各种渲染不出来的场景,当前对文本做了替换处理规避

Open dingsp opened this issue 6 months ago • 0 comments

加粗语法如果里面有中文引号和括号,会有各种渲染不出来的场景,当前对文本做了特殊处理规避:

// 先执行第一种转换:**(content)** -> "(**content**)"
// 再执行第二种转换:**“content”** -> “**content**”
anno = QuoteStarSwapUtil.convertAll(anno);
// 对中文左引号和左括号插入零宽字符
anno = anno.replaceAll("“", "​“");
anno = anno.replaceAll("(", "​(");

dingsp avatar Aug 01 '25 14:08 dingsp