From 4f3f8275837e29020aec7c31617f67d8c9df5764 Mon Sep 17 00:00:00 2001
From: Daniel <845765@qq.com>
Date: Sun, 26 Jan 2025 11:57:02 +0800
Subject: [PATCH] :art: Improve HTML clipping
https://github.com/siyuan-note/siyuan/issues/13885
---
kernel/api/extension.go | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/kernel/api/extension.go b/kernel/api/extension.go
index 48f8da5a8..f9ca9c72d 100644
--- a/kernel/api/extension.go
+++ b/kernel/api/extension.go
@@ -23,6 +23,7 @@ import (
"os"
"path"
"path/filepath"
+ "regexp"
"strconv"
"strings"
@@ -177,6 +178,14 @@ func extensionCopy(c *gin.Context) {
var tree *parse.Tree
if "" == md {
+ // 通过正则将 标签中间包含的换行去掉
+ regx, _ := regexp.Compile(`(?i)