对齐 Wolai 编辑器搜索与文档画布

This commit is contained in:
lix-2026
2026-04-30 18:36:50 +08:00
parent afb2a5b8a0
commit 2b88ecb4b9
14 changed files with 317 additions and 138 deletions
+6 -4
View File
@@ -214,10 +214,10 @@ fn runtime_block_type_for_raw_type(raw_type: &str) -> (&'static str, bool) {
match raw_type {
"paragraph" => ("paragraph", true),
"heading" => ("heading", true),
"bulletListItem" => ("bullet_list_item", true),
"numberedListItem" => ("numbered_list_item", true),
"checkListItem" | "advancedTodo" => ("todo", true),
"quote" => ("quote", true),
"bulletListItem" | "bullet_list_item" => ("bullet_list_item", true),
"numberedListItem" | "numbered_list_item" => ("numbered_list_item", true),
"checkListItem" | "advancedTodo" | "todo" => ("todo", true),
"quote" | "blockquote" => ("quote", true),
"divider" => ("divider", true),
"codeBlock" => ("code_block", true),
"pageReference" => ("page_reference", false),
@@ -237,6 +237,8 @@ fn raw_type_for_runtime_block_type(block_type: &str, fallback_raw_type: &str) ->
"todo" => {
if fallback_raw_type == "advancedTodo" {
"advancedTodo".into()
} else if fallback_raw_type == "todo" {
"todo".into()
} else {
"checkListItem".into()
}