1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Avoid whitespace before anchors when wrapping

This commit is contained in:
Cotes Chung
2022-01-12 22:32:25 +08:00
parent 22c12a4d34
commit 96e7cd79af
2 changed files with 1 additions and 3 deletions

View File

@@ -205,7 +205,7 @@
{% endif %}
{% assign id = snippet | split: '"' | first %}
{% capture anchor %}<a href="#{{ id }}" class="anchor"><i class="fas fa-hashtag"></i></a>{% endcapture %}
{% capture anchor %} <a href="#{{ id }}" class="anchor"><i class="fas fa-hashtag"></i></a>{% endcapture %}
{% assign left = snippet | split: mark_end | first %}
{% assign _start_index = left | size %}