You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to dynamically create anchors to header elements outside the TOC, ideally using the built-in Jekyll slugify: latin filter. Example:
<h2 id="rin">Riñón</h2>
The anchor id drops non-latin characters. Sadly, this behavior doesn't match slugify filter options of pretty, ascii, or latin. Because the routines do not match, I cannot dynamically create a link that specifies this link. Of course, there are ways around this, but would be cool if the "slugs" created by this plugin could match jekyll slugify output with a setting or by default.
The text was updated successfully, but these errors were encountered:
Maybe my "home made patch" on jekyll-toc/lib/table_of_contents/helper.rb could help you. Just after PUNCTUATION_REGEXP = /[^\p{Word}\- ]/u.freeze, I have add:
I want to be able to dynamically create anchors to header elements outside the TOC, ideally using the built-in Jekyll
slugify: latin
filter. Example:<h2 id="rin">Riñón</h2>
The anchor id drops non-latin characters. Sadly, this behavior doesn't match
slugify
filter options ofpretty
,ascii
, orlatin
. Because the routines do not match, I cannot dynamically create a link that specifies this link. Of course, there are ways around this, but would be cool if the "slugs" created by this plugin could match jekyll slugify output with a setting or by default.The text was updated successfully, but these errors were encountered: