yuin / goldmark

:trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
MIT License
3.73k stars 257 forks source link

Add support for CJK Symbols and Punctuation #409

Closed henry0312 closed 1 year ago

henry0312 commented 1 year ago

Description:

This PR introduces an enhancement to the IsEastAsianWideRune function. The primary aim is to ensure that characters within the CJK Symbols and Punctuation range are correctly recognized as East Asian wide characters.

Rationale:

In the previous implementation, Japanese punctuation and certain related characters were not comprehensively covered. This oversight could lead to potential parsing inaccuracies when dealing with texts containing these characters. By extending support for these Unicode ranges, we can ensure a more accurate and inclusive representation of East Asian texts.

I appreciate any feedback and am open to making further adjustments if needed.