🎨 支持设置 虚拟引用关键字包含列表 https://github.com/siyuan-note/siyuan/issues/6354

This commit is contained in:
Liang Ding 2022-10-26 09:24:07 +08:00
parent c4fb442e46
commit fe7b98d1a9
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
10 changed files with 70 additions and 13 deletions

View file

@ -573,6 +573,7 @@
"md4": "Automatically indent the beginning of paragraphs to conform to traditional Chinese typesetting habits",
"md7": "Whether to display the network picture corner mark",
"md8": "After enabling, if the picture is a web file (non-local asset file), it will display a corner mark",
"md9": "Virtual Reference keyword inclusion list",
"md12": "Whether to display bookmark, name, alias, memo and reference count",
"md16": "After enabling, if there is such information, it will be displayed on the upper right side of the block",
"md27": "The code block shows the line number",

View file

@ -573,6 +573,7 @@
"md4": "Sangria automáticamente el comienzo de los párrafos para ajustarse a los hábitos tipográficos tradicionales chinos",
"md7": "Mostrar la marca de esquina de la imagen de red",
"md8": "Después de habilitarlo, si la imagen es un archivo de red (archivo de activos no locales), mostrará una marca de esquina",
"md9": "Lista de inclusión de palabras clave de referencia virtual",
"md12": "Mostrar el marcador, el nombre, el alias, el memo y el recuento de referencias",
"md16": "Una vez habilitado, si existe dicha información, se mostrará en la parte superior derecha del bloque",
"md27": "El bloque de código muestra el número de línea",

View file

@ -573,6 +573,7 @@
"md4": "indenter automatiquement le début des paragraphes pour se conformer aux habitudes de composition traditionnelles chinoises.",
"md7": "Affichage ou non de la marque d'angle de l'image réseau",
"md8": "Après l'activation, si l'image est un fichier web (fichier d'actif non local), une marque d'angle apparaîtra.",
"md9": "Liste d'inclusion de mots-clés de référence virtuelle",
"md12": "Affichage ou non du nombre de signets, de noms, d'alias, de mémos et de références.",
"md16": "Après l'activation, si de telles informations existent, elles seront affichées dans la partie haute à droite du bloc.",
"md27": "Le bloc de code indique le numéro de ligne",

View file

@ -573,6 +573,7 @@
"md4": "自動進行段首縮進,以符合傳統中文排版習慣",
"md7": "是否顯示網路圖片角標",
"md8": "啟用後如果圖片是網路檔(非本地資源檔)則會顯示角標",
"md9": "虛擬引用關鍵字包含列表",
"md12": "是否顯示書簽、命名、別名、備註和引用計數",
"md16": "啟用後如果存在這些資訊則將在塊的右上側進行顯示",
"md27": "代碼塊顯示行號",

View file

@ -573,6 +573,7 @@
"md4": "自动进行段首缩进,以符合传统中文排版习惯",
"md7": "是否显示网络图片角标",
"md8": "启用后如果图片是网络文件(非本地资源文件)则会显示角标",
"md9": "虚拟引用关键字包含列表",
"md12": "是否显示书签、命名、别名、备注和引用计数",
"md16": "启用后如果存在这些信息则将在块的右上侧进行显示",
"md27": "代码块显示行号",

View file

@ -140,6 +140,14 @@ export const editor = {
<span class="fn__space"></span>
<input class="b3-switch fn__flex-center" id="virtualBlockRef" type="checkbox"${window.siyuan.config.editor.virtualBlockRef ? " checked" : ""}/>
</label>
<label class="fn__flex b3-label">
<div class="fn__flex-1">
${window.siyuan.languages.md9}
<div class="b3-label__text">${window.siyuan.languages.md36}</div>
</div>
<span class="fn__space"></span>
<input class="b3-text-field fn__flex-center fn__size200" id="virtualBlockRefInclude" value="${window.siyuan.config.editor.virtualBlockRefInclude}" />
</label>
<label class="fn__flex b3-label">
<div class="fn__flex-1">
${window.siyuan.languages.md35}
@ -248,6 +256,7 @@ export const editor = {
katexMacros: (editor.element.querySelector("#katexMacros") as HTMLTextAreaElement).value,
codeLineWrap: (editor.element.querySelector("#codeLineWrap") as HTMLInputElement).checked,
virtualBlockRef: (editor.element.querySelector("#virtualBlockRef") as HTMLInputElement).checked,
virtualBlockRefInclude: (editor.element.querySelector("#virtualBlockRefInclude") as HTMLInputElement).value,
virtualBlockRefExclude: (editor.element.querySelector("#virtualBlockRefExclude") as HTMLInputElement).value,
blockRefDynamicAnchorTextMaxLen: parseInt((editor.element.querySelector("#blockRefDynamicAnchorTextMaxLen") as HTMLInputElement).value),
codeLigatures: (editor.element.querySelector("#codeLigatures") as HTMLInputElement).checked,

View file

@ -249,6 +249,7 @@ declare interface IEditor {
fontFamily: string;
virtualBlockRef: string;
virtualBlockRefExclude: string;
virtualBlockRefInclude: string;
blockRefDynamicAnchorTextMaxLen: number;
emoji: string[];