fix local markdown resource missing tabs and title setting

This commit is contained in:
lix-2026
2026-05-24 03:01:34 +08:00
parent 6904588055
commit 6df74fb4e0
10 changed files with 132 additions and 17 deletions
@@ -46,6 +46,7 @@ pub struct PageAggregateBuilder {
page_font: String,
hide_child_pages: bool,
show_block_ref_count: bool,
hide_title_header: bool,
embed_default_block_id: Value,
content: Value,
revision: Value,
@@ -86,6 +87,7 @@ impl PageAggregateBuilder {
page_font: "default".to_string(),
hide_child_pages: false,
show_block_ref_count: false,
hide_title_header: false,
embed_default_block_id: Value::Null,
content: Value::Null,
revision: Value::Null,
@@ -305,6 +307,7 @@ impl PageAggregateBuilder {
page_font: self.page_font,
hide_child_pages: self.hide_child_pages,
show_block_ref_count: self.show_block_ref_count,
hide_title_header: self.hide_title_header,
embed_default_block_id: self.embed_default_block_id,
};
let layout_options = to_value(&page_options).expect("PageOptions 序列化不应失败");