fastapi icon indicating copy to clipboard operation
fastapi copied to clipboard

🌐 Fix incorrect `pymdown-extensions` option used in CJK characters documentation

Open andychucs opened this issue 5 months ago β€’ 5 comments

The smart_enable option makes the docs not supported to be displayed when using bold and italics which are in Chinese, Japanese, and Korean.

We basically don’t use whitespace between words in Chinese and Japanese.

It causes a lot of problems with Markdown convert. So it should not be set as all just keep default is correct for now.

Check the difference here with search '**' in web documents.

Chinese:

after: https://42bebad1.fastapitiangolo.pages.dev/zh/#sponsors ζˆͺ屏2024-09-08 10 24 28

before: https://fastapi.tiangolo.com/zh/#sponsors ζˆͺ屏2024-09-08 10 17 11

Japanese:

after: https://42bebad1.fastapitiangolo.pages.dev/ja/#sponsors ζˆͺ屏2024-09-08 10 24 59

before: https://fastapi.tiangolo.com/ja/#sponsors ζˆͺ屏2024-09-08 10 23 32

Korean case like this one: https://github.com/fastapi/fastapi/pull/12142

andychucs avatar Sep 08 '24 02:09 andychucs