_includes/toc.html in jekyll-theme-h2o-ac-1.2.0 vs _includes/toc.html in jekyll-theme-h2o-ac-1.2.1

- old
+ new

@@ -128,11 +128,11 @@ {% capture anchorAttributes %} href="{% if baseURL %}{{ baseURL }}{% endif %}#{{ htmlID }}"{% endcapture %} {% if include.anchor_class %} {% capture anchorAttributes %}{{ anchorAttributes }} class="{{ include.anchor_class | split: '.' | join: ' ' }}"{% endcapture %} {% endif %} - - {% capture listItem %}<a{{ anchorAttributes }}>{{ anchorBody }}</a>{% endcapture %} + {% assign anchorBody2 = anchorBody | remove: ":" | replace: " ", "-" | downcase %} + {% capture listItem %}<a onclick="scrollToAdjust('{{ anchorBody2 }}')">{{ anchorBody }}</a>{% endcapture %} {% elsif skipNoIDs == true %} {% continue %} {% else %} {% capture listItem %}{{ anchorBody }}{% endcapture %} {% endif %}