**OS type**: - [x ] Unix - [ ] Windows - [ ] Other ([SPECIFY]) **Vim**: - [ ] vim - [x ] neovim - [ ] Other ([SPECIFY]) **Vim version**: NVIM v0.5.0-nightly **Reproduce steps**: 1. Open a markdown file. 2. Paste the following example into the file: ``` ## 测试 ``` 3. Then, attempt to generate TOC **Expected**: ``` # Table of Contents - [Table of Contents](#table-of-contents) - [测试](#测试) ## 测试 ``` **Actual**: outputs: ``` # Table of Contents - [Table of Contents](#table-of-contents) - [测试](#) ## 测试 ```
OS type:
Vim:
Vim version:
NVIM v0.5.0-nightly
Reproduce steps:
Expected:
Actual:
outputs: