Skip to content

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

@dingsp

Description

@dingsp

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions