Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-05-20 23:01:09 +08:00
commit 23ff9ae087
9 changed files with 21 additions and 10 deletions

View file

@ -1306,7 +1306,7 @@
"34": "This operation is not supported in read-only mode",
"35": "Rebuilding index, please wait...",
"36": "There is too much content in the historical document, in order not to affect performance, it has been switched to plain text display",
"37": "The name of the cloud sync directory (Bucket) should not contain spaces and special symbols, and the maximum length is 63 characters",
"37": "The cloud sync directory name (Bucket) cannot be empty, contain spaces or special symbols, and has a maximum length of 63 characters",
"38": "Too many keywords mentioned [%d], adjust if necessary [Settings - Search - Backlink Mentions - Keyword Limit]",
"39": "Deleting index %s",
"40": "Inserting index %s",

View file

@ -1306,7 +1306,7 @@
"34": "Esta operación no es compatible con el modo de sólo lectura",
"35": "Reconstruyendo el índice, por favor espere...",
"36": "Hay demasiado contenido en el documento historico, para no afectar el rendimiento, se ha cambiado a visualizacion de texto sin formato",
"37": "El nombre del directorio de sincronización en la nube (Bucket) no debe contener espacios ni símbolos especiales, y la longitud máxima es 63 caracteres.",
"37": "El nombre del directorio de sincronización en la nube (Bucket) no puede estar vacío, contener espacios o símbolos especiales y tiene una longitud máxima de 63 caracteres",
"38": "Demasiadas palabras clave mencionadas [%d], ajústelas si es necesario [Configuración - Búsqueda - Menciones de backlinks - Límite de palabras clave]",
"39": "Eliminando índice %s",
"40": "Insertando índice %s",

View file

@ -1306,7 +1306,7 @@
"34": "Cette opération n'est pas supportée en mode lecture seule.",
"35": "Recréation de l'index, veuillez patienter...",
"36": "Il y a trop de contenu dans le document historique, afin de ne pas affecter les performances, il a été basculé sur l'affichage en texte brut",
"37": "Le nom du répertoire de synchronisation cloud (Bucket) ne doit pas contenir d'espaces ni de symboles spéciaux, et la longueur maximale est de 63 caractères.",
"37": "Le nom du répertoire de synchronisation cloud (Bucket) ne peut pas être vide, contenir des espaces ou des symboles spéciaux et doit comporter une longueur maximale de 63 caractères",
"38": "Trop de mots-clés mentionnés [%d], ajustez si nécessaire [Paramètres - Recherche - Mentions de backlink - Limite de mots-clés]",
"39": "Suppression de l'index %s",
"40": "Insertion de l'index %s",

View file

@ -1306,7 +1306,7 @@
"34": "この操作は読み取り専用モードではサポートされていません",
"35": "インデックスを再構築しています。お待ちください...",
"36": "コンテンツの履歴が多すぎるため、パフォーマンスに影響を与えないようにプレーンテキスト表示に切り替えました",
"37": "クラウド同期ディレクトリ (バケット) の名前にスペースや特殊記号を含めることはできず、最大長は 63 文字です",
"37": "クラウド同期ディレクトリ名 (バケット) は空にすることはできず、スペースや特殊記号を含めることはできません。最大長は 63 文字です",
"38": "キーワードが多すぎます [%d]。必要に応じて [設定] - [検索] - [バックリンク] - [メンション] - [キーワード制限] を調節してください",
"39": "インデックス %s を削除しています",
"40": "インデックス %s を挿入しています",

View file

@ -1306,7 +1306,7 @@
"34": "唯讀模式下不支援該操作",
"35": "正在重建索引,請稍等...",
"36": "歷史文檔內容太多,為了不影響性能,已經切換為純文字顯示",
"37": "雲端同步目錄名Bucket請勿包含空格和特殊符號,最大長度 63 字符",
"37": "雲端同步目錄名Bucket不能為空、包含空格或特殊符號,最大長度 63 字符",
"38": "提及關鍵字數量 [%d] 過多,如有需要可以調整 [設置 - 搜索 - 反連提及 - 關鍵字數量限制]",
"39": "正在刪除索引 %s",
"40": "正在插入索引 %s",

View file

@ -1306,7 +1306,7 @@
"34": "只读模式下不支持该操作",
"35": "正在重建索引,请稍等...",
"36": "历史文档内容太多,为了不影响性能,已经切换为纯文本显示",
"37": "云端同步目录名Bucket请勿包含空格和特殊符号,最大长度 63 字符",
"37": "云端同步目录名Bucket不能为空、包含空格或特殊符号,最大长度 63 字符",
"38": "提及关键字数量 [%d] 过多,如有需要可以调整 [设置 - 搜索 - 反链提及 - 关键字数量限制]",
"39": "正在删除索引 %s",
"40": "正在插入索引 %s",

View file

@ -20,6 +20,7 @@ import (
"errors"
"fmt"
"net/http"
"strings"
"github.com/88250/gulu"
"github.com/88250/lute/html"
@ -352,7 +353,17 @@ func getRefText(c *gin.Context) {
if "" == refText {
// 空块返回 id https://github.com/siyuan-note/siyuan/issues/10259
refText = id
ret.Data = refText
return
}
if strings.Count(refText, "\\") == len(refText) {
// 全部都是 \ 的话使用实体 https://github.com/siyuan-note/siyuan/issues/11473
refText = strings.ReplaceAll(refText, "\\", "\")
ret.Data = refText
return
}
ret.Data = refText
}

View file

@ -8,7 +8,7 @@ require (
github.com/88250/epub v0.0.0-20230830085737-c19055cd1f48
github.com/88250/go-humanize v0.0.0-20240424102817-4f78fac47ea7
github.com/88250/gulu v1.2.3-0.20240505150113-bc43bd50f866
github.com/88250/lute v1.7.7-0.20240518021146-7847ee928e31
github.com/88250/lute v1.7.7-0.20240520140444-22dd5810b592
github.com/88250/pdfcpu v0.3.14-0.20230401044135-c7369a99720c
github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1
github.com/ClarkThan/ahocorasick v0.0.0-20231011042242-30d1ef1347f4
@ -172,7 +172,7 @@ require (
replace github.com/mattn/go-sqlite3 => github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950
//replace github.com/88250/lute => D:\gogogo\src\github.com\88250\lute
//replace github.com/88250/lute => F:\golang\gopath\src\github.com\88250\lute
//replace github.com/siyuan-note/dejavu => D:\88250\dejavu
//replace github.com/siyuan-note/riff => D:\88250\riff
//replace github.com/siyuan-note/httpclient => D:\88250\httpclient

View file

@ -12,8 +12,8 @@ github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950 h1:Pa5hMiBceT
github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
github.com/88250/gulu v1.2.3-0.20240505150113-bc43bd50f866 h1:RFfNFS0hv6TbOuwET6xZAfGlV4hNlXiWTnfbLN1eF6k=
github.com/88250/gulu v1.2.3-0.20240505150113-bc43bd50f866/go.mod h1:MUfzyfmbPrRDZLqxc7aPrVYveatTHRfoUa5TynPS0i8=
github.com/88250/lute v1.7.7-0.20240518021146-7847ee928e31 h1:fndkUMfcXELViXxEuqS92N3xZhNcSssnhHOvei3zjZc=
github.com/88250/lute v1.7.7-0.20240518021146-7847ee928e31/go.mod h1:VDAzL8b+oCh+e3NAlmwwLzC53ten0rZlS8NboB7ljtk=
github.com/88250/lute v1.7.7-0.20240520140444-22dd5810b592 h1:ICYi44ga/+kHbOGy8JpPBnhUE5DFary8K4+b0GbduVw=
github.com/88250/lute v1.7.7-0.20240520140444-22dd5810b592/go.mod h1:VDAzL8b+oCh+e3NAlmwwLzC53ten0rZlS8NboB7ljtk=
github.com/88250/pdfcpu v0.3.14-0.20230401044135-c7369a99720c h1:Dl/8S9iLyPMTElnWIBxmjaLiWrkI5P4a21ivwAn5pU0=
github.com/88250/pdfcpu v0.3.14-0.20230401044135-c7369a99720c/go.mod h1:S5YT38L/GCjVjmB4PB84PymA1qfopjEhfhTNQilLpv4=
github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1 h1:48T899JQDwyyRu9yXHePYlPdHtpJfrJEUGBMH3SMBWY=