-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Feature Request: Add an option to choose other slugify function #17
Comments
Why don't you use other slugify function instead of this one? Do you want to change the default behavior of Hexo engine by assign anothor |
I found that if the anchor point <a class="post-toc-link" href="#3-散列算法"></a>
<h2 id="3-散列算法">...</h2> I think a |
@mygu In the example that you gave, what is the expected value for <h2 id="3-%E6%95%A3%E5%88%97%E7%AE%97%E6%B3%95">...</h2> |
@curbengh Yes, it's looks good. 👍 |
I don't think encodeURI() can be added to slugize, otherwise title: %E6%95%A3%E5%88%97%E7%AE%97%E6%B3%95 In regards to your issue, I think encodeURI should be added to toc.js and hexo-renderer-marked instead. Edit: I just tested <html>
<head></head>
<body>
<a href="#3-散列算法">Description of Same-Page Links</a>
</br></br></br></br></br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br></br></br></br></br>
<h1 id="3-散列算法">Title</h1>
</body>
</html> works for me (Firefox). Longer text example. |
The default slugize is very simple and fast, however, it's not that useful for CJK characters. Could you make it possible to choose another slugify function, such as https://github.com/andyhu/node-transliteration ?
The text was updated successfully, but these errors were encountered: