加粗测试(含括号)
上面这行应该加粗,实际没加粗,星号原样显示。
Same text with ASCII parentheses works fine:
bold test (with parens)
The difference is the closing ** is preceded by )(U+FF09). Per CommonMark delimiter rules, ** preceded by punctuation and followed by a letter or end-of-text should still be a valid right-flanking delimiter. JetBrains Markdown appears to mishandle the Unicode category lookup for fullwidth punctuation here, treating it differently from ASCII ).
Seen on multiplatform-markdown-renderer-m3 0.41.0, Android.
Possible solution: ensure fullwidth punctuation characters (U+FF00–U+FFEF) are classified correctly when evaluating delimiter flanking rules, matching the behavior for their ASCII equivalents.
加粗测试(含括号)
上面这行应该加粗,实际没加粗,星号原样显示。
Same text with ASCII parentheses works fine:
bold test (with parens)
The difference is the closing ** is preceded by )(U+FF09). Per CommonMark delimiter rules, ** preceded by punctuation and followed by a letter or end-of-text should still be a valid right-flanking delimiter. JetBrains Markdown appears to mishandle the Unicode category lookup for fullwidth punctuation here, treating it differently from ASCII ).
Seen on multiplatform-markdown-renderer-m3 0.41.0, Android.
Possible solution: ensure fullwidth punctuation characters (U+FF00–U+FFEF) are classified correctly when evaluating delimiter flanking rules, matching the behavior for their ASCII equivalents.