Skip to content

Commit

Permalink
fix: code contains spaces in headings (cotes2020#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtsHsu authored and shihtiy-tw committed Nov 26, 2022
1 parent 19824aa commit 75f8d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/refactor-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@

{% assign left = snippet | split: mark_end | first %}
{% assign right = snippet | slice: left.size, snippet.size %}
{% assign left = left | replace: '">', '"><span class="mr-2">' | append: '</span>' %}
{% assign left = left | replace_first: '">', '"><span class="mr-2">' | append: '</span>' %}

{% assign _new_content = _new_content | append: mark_start
| append: left | append: anchor | append: right
Expand Down

0 comments on commit 75f8d24

Please sign in to comment.