From 3fa1bf305451f645a7f3aa93863b076463c8f165 Mon Sep 17 00:00:00 2001
From: Nihil <1009978366@qq.com>
Date: Sat, 23 Jul 2022 19:10:20 +0800
Subject: [PATCH] fix: code contains spaces in headings (#644)
---
_includes/refactor-content.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_includes/refactor-content.html b/_includes/refactor-content.html
index 83329b3..6cfbc1b 100644
--- a/_includes/refactor-content.html
+++ b/_includes/refactor-content.html
@@ -214,7 +214,7 @@
{% assign left = snippet | split: mark_end | first %}
{% assign right = snippet | slice: left.size, snippet.size %}
- {% assign left = left | replace: '">', '">' | append: '' %}
+ {% assign left = left | replace_first: '">', '">' | append: '' %}
{% assign _new_content = _new_content | append: mark_start
| append: left | append: anchor | append: right