Unicode characters don't appear to work #47
-
Hello, I have two issues First, I use the Vietnamese language to write heading on pages (picture 1) for creating ToC. However, I meet issues like picture 2 and when I click ToC, it doesn't scroll. I don't know how to fix it. Could you give me some solution? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Do you have an example repository I can look at? I'm currently using kramdown and UTF-8 characters are loading fine for me. {% capture markdown %}
# Theoretical và-empirical-lý-thuyết-và-thực-nghiệm
{% endcapture %}
{% assign text = markdown | markdownify %}
{% include toc.html html=text class="awesome-toc-class" %} <ul class="awesome-toc-class">
<li><a href="#theoretical-và-empirical-lý-thuyết-và-thực-nghiệm">Theoretical và-empirical-lý-thuyết-và-thực-nghiệm</a></li>
</ul> |
Beta Was this translation helpful? Give feedback.
-
hello, Thank your response. I have input files. Please check it I also using kramdown and UTF-8 characters. The first time, I write some of heading included Vietnamese (VN) and English (EN) languages. After that, I clicked TOC, it doesn't scroll to VN heading, only EN. Then I try to copy the link address of heading, it looks like Second time, I combined VN and EN together. For example,
However, I edited content from VN to EN, it runs okay. I was put toc_pure_liquid.html on _includes/ and docs.html on _layouts/ |
Beta Was this translation helpful? Give feedback.
-
Oh man, |
Beta Was this translation helpful? Give feedback.
-
I update the latest version. However, the issue still shows.
|
Beta Was this translation helpful? Give feedback.
-
Could you please provide some sample content? When I tried decoding the HTML encoded values and used it for my tests, I couldn't replicate your behavior. |
Beta Was this translation helpful? Give feedback.
-
Hello, My blog fork from docs.docker.com, keep all js, css, and their gem. Just put katex js I check 2 times
You can go to my link here. |
Beta Was this translation helpful? Give feedback.
-
This doesn't seem to be a problem with the code jekyll-toc is generating. When I disable JS on your website, the TOC links work as intended. This appears to be some JS interfering with the behavior of navigation. |
Beta Was this translation helpful? Give feedback.
This doesn't seem to be a problem with the code jekyll-toc is generating. When I disable JS on your website, the TOC links work as intended. This appears to be some JS interfering with the behavior of navigation.