-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkdx TOC does not support utf8 title #130
Comments
Yep that looks like a bug indeed, will check it out somewhere this week. Cheers for the report 👍 |
Thanks! And there is another bug that
generates
The period was missing. Should I open a new issue or leave it here? |
@Cyperwu so it actually generated |
Oke so the issue with chinese characters should now be fixed (https://stackoverflow.com/questions/41318003/how-to-match-chinese-characters-with-grep) by including the unicode range of chinese. About this other bug, I checked to see what gets generated when using |
Sorry, I checked my code and found that it was related to my markdown preview tool. So that the related bug was actually not exist. |
…rontmatter last line showing up in generated TOC
I can't reproduce this on either neovim (0.5.0) or regular vim (8.1), even after I also patched another bug in there with YAML frontmatter showing up in generated table of contents because in markdown |
It still raises Here is a piece the error message:
I found some code on vim-markdown-toc. They support Chinese, Korean specifically but I think that's not the common use case for markdown writing. |
Hmmn very strange, also not very easy to fix for me as I don't get this error at all :( What I think I'll try to do is split this one big range up into multiple smaller ones that are no more than 256 chars apart since that is the limit of the old regex engine. Unfortunately though I'll also have to ask for your feedback on it once I've committed some change since I can't reproduce it myself 😅 I'll keep you posted when I've worked more on it, will try to apply another patch after work. |
alright @Cyperwu can you update again and give it another shot? The ranges are now split and should all be < 256 characters apart as per Vim limit. The only thing I can imagine that would cause it to fail is because they are all still in the same character class, but not as one giant range but quite a few small ranges. Cheers for your patience and feedback so far, looking forward to more info 👍 |
Cheers, your patch works! |
Good stuff, will close this, thanks for reporting! |
OS type:
Vim:
Vim version:
NVIM v0.5.0-nightly
Reproduce steps:
Expected:
Actual:
outputs:
The text was updated successfully, but these errors were encountered: