From ea3070a204d70ad94560c072fda0c8640e2d685e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 24 Aug 2022 17:30:15 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=A1=8C=E9=9D=A2=E7=AB=AF=E6=8B=96?= =?UTF-8?q?=E5=85=A5=E6=96=87=E4=BB=B6=E6=97=B6=E5=8F=AF=E9=80=89=E6=8B=A9?= =?UTF-8?q?=20`=E4=BD=BF=E7=94=A8=20file://=20=E7=BB=9D=E5=AF=B9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E5=B9=B6=E9=93=BE=E6=8E=A5`=20=E6=88=96=20`=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E4=B8=BA=E8=B5=84=E6=BA=90=E6=96=87=E4=BB=B6=E5=B9=B6?= =?UTF-8?q?=E6=8F=92=E5=85=A5`=20https://github.com/siyuan-note/siyuan/iss?= =?UTF-8?q?ues/5369?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20200924100744-br924ar.sy | 183 +++++++++++++++--- .../20200915214115-42b8zma.sy | 155 +++++++++++++-- .../20211226123038-4umgpxy.sy | 158 ++++++++++++++- 3 files changed, 448 insertions(+), 48 deletions(-) diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100744-br924ar.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100744-br924ar.sy index f3e7da86f..db0acc79e 100644 --- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100744-br924ar.sy +++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100744-br924ar.sy @@ -5,7 +5,7 @@ "id": "20200924100744-br924ar", "title": "Assets", "type": "doc", - "updated": "20220715105117" + "updated": "20220824172918" }, "Children": [ { @@ -66,44 +66,172 @@ "Type": "NodeHeading", "HeadingLevel": 2, "Properties": { - "id": "20201210194734-v2rmiaq" + "id": "20201210194734-v2rmiaq", + "updated": "20220824172803" }, "Children": [ { - "Type": "NodeHeadingC8hMarker", - "Data": "## " + "Type": "NodeText", + "Data": "Insert picture or file" + } + ] + }, + { + "ID": "20220824172815-s8znsau", + "Type": "NodeParagraph", + "Properties": { + "id": "20220824172815-s8znsau", + "updated": "20220824172918" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "In the editor, you can directly paste the copied picture or file in the system clipboard, or insert it by dragging and dropping the picture or file into the editor. There are two options when inserting:" + } + ] + }, + { + "ID": "20220824172815-ckivl7c", + "Type": "NodeList", + "ListData": {}, + "Properties": { + "id": "20220824172815-ckivl7c", + "updated": "20220824172815" + }, + "Children": [ + { + "ID": "20220824172815-q1oeusj", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20220824172815-q1oeusj", + "updated": "20220824172815" + }, + "Children": [ + { + "ID": "20220824172815-fqyy0l6", + "Type": "NodeParagraph", + "Properties": { + "id": "20220824172815-fqyy0l6", + "updated": "20220824172815" + }, + "Children": [ + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "Copy as a resource file and insert" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + }, + { + "Type": "NodeText", + "Data": ": Copy a picture or file as a resource file and insert, shortcut key " + }, + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "Ctrl+V" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + } + ] + } + ] }, { - "Type": "NodeText", - "Data": "Insert picture" + "ID": "20220824172815-0lsclx1", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20220824172815-0lsclx1", + "updated": "20220824172815" + }, + "Children": [ + { + "ID": "20220824172815-dqfasin", + "Type": "NodeParagraph", + "Properties": { + "id": "20220824172815-dqfasin", + "updated": "20220824172815" + }, + "Children": [ + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "Use file:// absolute path and link" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + }, + { + "Type": "NodeText", + "Data": ": Insert a picture or file into a hyperlink as a local absolute path, shortcut key " + }, + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "Ctrl+Shift+V" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + } + ] + } + ] } ] }, { - "ID": "20210104091430-uqs502r", + "ID": "20220824172815-6f3pj5z", "Type": "NodeParagraph", "Properties": { - "id": "20210104091430-uqs502r", - "updated": "20210503095810" + "id": "20220824172815-6f3pj5z", + "updated": "20220824172910" }, "Children": [ { "Type": "NodeText", - "Data": "In the editor, you can directly paste the copied picture from the system clipboard, or you can also insert pictures by dragging and dropping picture files into the editor." - } - ] - }, - { - "ID": "20210104091430-tj5w1co", - "Type": "NodeParagraph", - "Properties": { - "id": "20210104091430-tj5w1co", - "updated": "20210615102951" - }, - "Children": [ - { - "Type": "NodeText", - "Data": "If you specify a title for a picture, then the title will be rendered below the image as a legend." + "Data": "For pictures, if a picture title is specified during layout, the title will be rendered below the picture as a legend." } ] }, @@ -112,13 +240,14 @@ "Type": "NodeParagraph", "Properties": { "id": "20210104091430-yd3zyeu", - "updated": "20210604092437" + "updated": "20220824172752" }, "Children": [ { "Type": "NodeImage", "Data": "span", "Properties": { + "parent-style": "display: block;", "style": "display: block;" }, "Children": [ @@ -154,6 +283,10 @@ } ] }, + { + "Type": "NodeKramdownSpanIAL", + "Data": "{: style=\"display: block;\" parent-style=\"display: block;\"}" + }, { "Type": "NodeText", "Data": "\n" diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200915214115-42b8zma.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200915214115-42b8zma.sy index 2b98cfa98..a12beace9 100644 --- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200915214115-42b8zma.sy +++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200915214115-42b8zma.sy @@ -5,7 +5,7 @@ "id": "20200915214115-42b8zma", "title": "资源文件", "type": "doc", - "updated": "20220715105016" + "updated": "20220824172745" }, "Children": [ { @@ -66,16 +66,13 @@ "Type": "NodeHeading", "HeadingLevel": 2, "Properties": { - "id": "20201210194734-lr6v0s2" + "id": "20201210194734-lr6v0s2", + "updated": "20220824171919" }, "Children": [ - { - "Type": "NodeHeadingC8hMarker", - "Data": "## " - }, { "Type": "NodeText", - "Data": "插入图片" + "Data": "插入图片或文件" } ] }, @@ -84,12 +81,143 @@ "Type": "NodeParagraph", "Properties": { "id": "20210104091255-8s7avcx", - "updated": "20210503095618" + "updated": "20220824172231" }, "Children": [ { "Type": "NodeText", - "Data": "在编辑器中可以直接粘贴系统剪切板中复制好的图片,或者通过拖拽图片文件到编辑器中也可以实现图片插入。" + "Data": "在编辑器中可以直接粘贴系统剪切板中复制好的图片或文件,或者通过拖拽图片或文件到编辑器中也可以实现插入。插入时有两个选择:" + } + ] + }, + { + "ID": "20220824172203-etwu4qu", + "Type": "NodeList", + "ListData": {}, + "Properties": { + "id": "20220824172203-etwu4qu", + "updated": "20220824172531" + }, + "Children": [ + { + "ID": "20220824172204-xxh346y", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20220824172204-xxh346y", + "updated": "20220824172527" + }, + "Children": [ + { + "ID": "20220824172204-fct1t0t", + "Type": "NodeParagraph", + "Properties": { + "id": "20220824172204-fct1t0t", + "updated": "20220824172527" + }, + "Children": [ + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "复制为资源文件并插入" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + }, + { + "Type": "NodeText", + "Data": ":将图片或文件复制为资源文件并插入,快捷键 " + }, + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "Ctrl+V" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + } + ] + } + ] + }, + { + "ID": "20220824172403-agsj358", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20220824172403-agsj358", + "updated": "20220824172531" + }, + "Children": [ + { + "ID": "20220824172403-0fkrw8o", + "Type": "NodeParagraph", + "Properties": { + "id": "20220824172403-0fkrw8o", + "updated": "20220824172531" + }, + "Children": [ + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "使用 file:// 绝对路径并链接" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + }, + { + "Type": "NodeText", + "Data": ":将图片或文件以本地绝对路径方式插入超链接,快捷键 " + }, + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "Ctrl+Shift+V" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + } + ] + } + ] } ] }, @@ -98,12 +226,12 @@ "Type": "NodeParagraph", "Properties": { "id": "20210104091255-7fwvx7a", - "updated": "20210615101500" + "updated": "20220824172301" }, "Children": [ { "Type": "NodeText", - "Data": "如果排版时指定了图片标题,则标题会被渲染在图片下方作为图注。" + "Data": "对于图片,如果排版时指定了图片标题,则标题会被渲染在图片下方作为图注。" } ] }, @@ -112,13 +240,14 @@ "Type": "NodeParagraph", "Properties": { "id": "20210512171633-u3iy2xx", - "updated": "20210604092212" + "updated": "20220824172745" }, "Children": [ { "Type": "NodeImage", "Data": "span", "Properties": { + "parent-style": "display: block;", "style": "display: block;" }, "Children": [ @@ -156,7 +285,7 @@ }, { "Type": "NodeKramdownSpanIAL", - "Data": "{: style=\"display: block;\"}" + "Data": "{: style=\"display: block;\" parent-style=\"display: block;\"}" }, { "Type": "NodeText", diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226123038-4umgpxy.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226123038-4umgpxy.sy index 7ad7de34d..f7fe8aac2 100644 --- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226123038-4umgpxy.sy +++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226123038-4umgpxy.sy @@ -4,7 +4,7 @@ "Properties": { "id": "20211226123038-4umgpxy", "title": "資料文件", - "updated": "20220715105038" + "updated": "20220824172748" }, "Children": [ { @@ -62,12 +62,12 @@ "HeadingLevel": 2, "Properties": { "id": "20211226123051-ddr3yub", - "updated": "20211226013452" + "updated": "20220824172704" }, "Children": [ { "Type": "NodeText", - "Data": "插入圖片" + "Data": "插入圖片或文件" } ] }, @@ -76,26 +76,157 @@ "Type": "NodeParagraph", "Properties": { "id": "20211226123051-zdhnfws", - "updated": "20211228140810" + "updated": "20220824172714" }, "Children": [ { "Type": "NodeText", - "Data": "在編輯器中可以直接貼上系統剪貼簿中複製好的圖片,或者通過拖拽圖片文件到編輯器中也可以實作圖片插入。" + "Data": "在編輯器中可以直接粘貼系統剪切板中復制好的圖片或文件,或者通過拖拽圖片或文件到編輯器中也可以實現插入。插入時有兩個選擇:" } ] }, { - "ID": "20211226123051-yczpz86", + "ID": "20220824172728-jpp1e8c", + "Type": "NodeList", + "ListData": {}, + "Properties": { + "id": "20220824172728-jpp1e8c", + "updated": "20220824172728" + }, + "Children": [ + { + "ID": "20220824172728-wiu7i7u", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20220824172728-wiu7i7u", + "updated": "20220824172728" + }, + "Children": [ + { + "ID": "20220824172728-scx3qge", + "Type": "NodeParagraph", + "Properties": { + "id": "20220824172728-scx3qge", + "updated": "20220824172728" + }, + "Children": [ + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "複製為資源文件並插入" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + }, + { + "Type": "NodeText", + "Data": ":將圖片或文件複製為資源文件並插入,快捷鍵 " + }, + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "Ctrl+V" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + } + ] + } + ] + }, + { + "ID": "20220824172728-deq7vh0", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20220824172728-deq7vh0", + "updated": "20220824172728" + }, + "Children": [ + { + "ID": "20220824172728-2gnv8ox", + "Type": "NodeParagraph", + "Properties": { + "id": "20220824172728-2gnv8ox", + "updated": "20220824172728" + }, + "Children": [ + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "使用 file:// 絕對路徑並鏈接" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + }, + { + "Type": "NodeText", + "Data": ":將圖片或文件以本地絕對路徑方式插入超鏈接,快捷鍵 " + }, + { + "Type": "NodeKbd", + "Data": "kbd", + "Children": [ + { + "Type": "NodeKbdOpenMarker" + }, + { + "Type": "NodeText", + "Data": "Ctrl+Shift+V" + }, + { + "Type": "NodeKbdCloseMarker" + } + ] + } + ] + } + ] + } + ] + }, + { + "ID": "20220824172728-jc3gsl1", "Type": "NodeParagraph", "Properties": { - "id": "20211226123051-yczpz86", - "updated": "20211226013634" + "id": "20220824172728-jc3gsl1", + "updated": "20220824172728" }, "Children": [ { "Type": "NodeText", - "Data": "如果排版時指定了圖片標題,則標題會被渲染在圖片下方作為圖注。" + "Data": "對於圖片,如果排版時指定了圖片標題,則標題會被渲染在圖片下方作為圖注。" } ] }, @@ -104,12 +235,15 @@ "Type": "NodeParagraph", "Properties": { "id": "20211226123051-2p8rbm4", - "updated": "20211226013452" + "updated": "20220824172748" }, "Children": [ { "Type": "NodeImage", "Data": "span", + "Properties": { + "parent-style": "display: block;" + }, "Children": [ { "Type": "NodeBang" @@ -142,6 +276,10 @@ "Type": "NodeCloseParen" } ] + }, + { + "Type": "NodeKramdownSpanIAL", + "Data": "{: parent-style=\"display: block;\"}" } ] },