eslint / zh-hans.docs.eslint.org

Simplified Chinese website
Apache License 2.0
15 stars 4 forks source link

Bug: The anchor generated by eleventy with Chinese is missing the Chinese part #92

Closed kecrily closed 1 year ago

kecrily commented 1 year ago

URL(s)

All url

https://zh-hans.eslint.org/docs/latest/user-guide/getting-started

What did you do?

Use Chinese in title

## 安装并使用

What did you expect to happen?

It should generate Chinese anchor (#安装并使用)

What actually happened?

The Chinese part is missing (#)

Participation

Additional comments

All anchors that contain Chinese are affected, which means that anchor links are almost unusable.

A title like ## 中文 English should generate a #中文-English anchor, but actually generates a #-English anchor.