我暂时无权对公司的论坛做出这样的改动,但还是感谢你的回复!
I currently do not have the authority to make such changes to my company’s forum, but I do appreciate your response!
另外,我还想问,官方是否有考虑过在后续DiscoTOC插件的正式版中,加入这一功能对其他语言的支持呢?
Furthermore, I’d like to ask if the official team has considered incorporating support for other non-latin languages regarding this auto-generated table of contents in future DiscoTOC component releases? @Lilly@awesomerobot
In truth, they have taken into consideration non-Latin languages, utilizing the slugify(h.textContent) method. I suspect that this slugify function was developed in accordance with the forum’s slug generation method. When it is not in ‘encode’ mode, issues tend to arise, although I have not personally tested this hypothesis.
In previous instances when we used the official version of the theme component our forum’s slug generation method was set to ‘none’, which gave rise to similar problems. May I therefore suggest that you attempt altering the setting to ‘encode’?
其实他们考虑了non-latin language ,用到了slugify(h.textContent) ,我怀疑这个slugify函数是根据论坛的 slug generation method 生成的,当它不是 encode 的时候就会出问题,但我没试过。
I made an attempt to modify this setting, but the issues mentioned earlier still persist. The data-d-toc ID can only read numbers and letters, and there are still instances of duplicated table of contents IDs. I guess the crux lies elsewhere?