对齐 Wolai 编辑器搜索与文档画布
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user