Skip to content

Commit

Permalink
🎨 Supports disabling Markdown syntax input for some inline elements #…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Apr 26, 2024
1 parent 43359e9 commit a94fdc1
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"id": "20200924100808-j9sddk9",
"title": "Import and Export",
"type": "doc",
"updated": "20220511190015"
"updated": "20240426184519"
},
"Children": [
{
Expand Down Expand Up @@ -72,7 +72,7 @@
},
{
"Type": "NodeText",
"Data": " is encountered during import, SiYuan will convert "
"Data": " is encountered during import, SiYuan will convert "
},
{
"Type": "NodeTextMark",
Expand All @@ -81,7 +81,7 @@
},
{
"Type": "NodeText",
"Data": " into "
"Data": " into "
},
{
"Type": "NodeTextMark",
Expand All @@ -101,7 +101,7 @@
},
{
"Type": "NodeText",
"Data": ", it will not be converted, because the path files starting with "
"Data": ", it will not be converted, because the path files starting with "
},
{
"Type": "NodeTextMark",
Expand All @@ -110,7 +110,84 @@
},
{
"Type": "NodeText",
"Data": " are hidden files, SiYuan will not process them."
"Data": "​ are hidden files, SiYuan will not process them."
}
]
},
{
"ID": "20240426184519-mwc558q",
"Type": "NodeParagraph",
"Properties": {
"id": "20240426184519-mwc558q",
"updated": "20240426184519"
},
"Children": [
{
"Type": "NodeText",
"Data": "If you need to recognize some extended syntax (such as superscript "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "^foo^"
},
{
"Type": "NodeText",
"Data": "​, subscript "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~foo~"
},
{
"Type": "NodeText",
"Data": "​, tag "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "#foo"
},
{
"Type": "NodeText",
"Data": "​ and formula "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "$foo$"
},
{
"Type": "NodeText",
"Data": "​, etc.), please open "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Settings"
},
{
"Type": "NodeText",
"Data": "​ - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Editor"
},
{
"Type": "NodeText",
"Data": "​ - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Markdown syntax"
},
{
"Type": "NodeText",
"Data": "​ related switches."
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"id": "20200813125307-pxsjela",
"title": "导入和导出",
"type": "doc",
"updated": "20220511190018"
"updated": "20240426184237"
},
"Children": [
{
Expand Down Expand Up @@ -72,7 +72,7 @@
},
{
"Type": "NodeText",
"Data": " 的图片语法(本地相对路径),则思源会将 "
"Data": " 的图片语法(本地相对路径),则思源会将 "
},
{
"Type": "NodeTextMark",
Expand All @@ -81,7 +81,7 @@
},
{
"Type": "NodeText",
"Data": " 转换为"
"Data": " 转换为"
},
{
"Type": "NodeTextMark",
Expand All @@ -101,7 +101,7 @@
},
{
"Type": "NodeText",
"Data": " 则不会转换,因为 "
"Data": " 则不会转换,因为 "
},
{
"Type": "NodeTextMark",
Expand All @@ -110,7 +110,84 @@
},
{
"Type": "NodeText",
"Data": " 开头的路径文件属于隐藏文件,思源不会进行处理。"
"Data": "​ 开头的路径文件属于隐藏文件,思源不会进行处理。"
}
]
},
{
"ID": "20240426184018-e8mz594",
"Type": "NodeParagraph",
"Properties": {
"id": "20240426184018-e8mz594",
"updated": "20240426184237"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果需要识别一些扩展语法(比如 上标 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "^foo^"
},
{
"Type": "NodeText",
"Data": "​、下标 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~foo~"
},
{
"Type": "NodeText",
"Data": "​、标签 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "#foo"
},
{
"Type": "NodeText",
"Data": "​ 和公式 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "$foo$"
},
{
"Type": "NodeText",
"Data": "​ 等),请打开 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "设置"
},
{
"Type": "NodeText",
"Data": "​ - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "编辑器"
},
{
"Type": "NodeText",
"Data": "​ - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Markdown 语法"
},
{
"Type": "NodeText",
"Data": "​ 相关开关。"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"Properties": {
"id": "20211226123302-akitvb1",
"title": "導入和導出",
"updated": "20230630112012"
"type": "doc",
"updated": "20240426184612"
},
"Children": [
{
Expand Down Expand Up @@ -71,7 +72,7 @@
},
{
"Type": "NodeText",
"Data": " 的圖片語法(本地相對路徑),則思源會將 "
"Data": " 的圖片語法(本地相對路徑),則思源會將 "
},
{
"Type": "NodeTextMark",
Expand All @@ -80,7 +81,7 @@
},
{
"Type": "NodeText",
"Data": " 轉換為"
"Data": " 轉換為"
},
{
"Type": "NodeTextMark",
Expand All @@ -100,7 +101,7 @@
},
{
"Type": "NodeText",
"Data": " 則不會轉換,因為 "
"Data": " 則不會轉換,因為 "
},
{
"Type": "NodeTextMark",
Expand All @@ -109,7 +110,84 @@
},
{
"Type": "NodeText",
"Data": " 開頭的路徑文件屬於隱藏文件,思源不會進行處理。"
"Data": "​ 開頭的路徑文件屬於隱藏文件,思源不會進行處理。"
}
]
},
{
"ID": "20240426184604-4ldk0w4",
"Type": "NodeParagraph",
"Properties": {
"id": "20240426184604-4ldk0w4",
"updated": "20240426184612"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果需要辨識一些擴充語法(例如上標 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "^foo^"
},
{
"Type": "NodeText",
"Data": "​、下標 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~foo~"
},
{
"Type": "NodeText",
"Data": "​、標籤 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "#foo"
},
{
"Type": "NodeText",
"Data": "​ 和公式 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "$foo$"
},
{
"Type": "NodeText",
"Data": "​ 等),請開啟"
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "設定"
},
{
"Type": "NodeText",
"Data": "​ - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "編輯器"
},
{
"Type": "NodeText",
"Data": "​ - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Markdown 語法"
},
{
"Type": "NodeText",
"Data": "​ 相關開關。"
}
]
},
Expand Down

0 comments on commit a94fdc1

Please sign in to comment.