checkpoint before gfm ast parser design
This commit is contained in:
@@ -102,7 +102,7 @@ impl Default for PageOptions {
|
||||
wide_layout: false,
|
||||
small_text: false,
|
||||
layout_density: "normal".into(),
|
||||
show_heading_numbers: true,
|
||||
show_heading_numbers: false,
|
||||
show_toc: false,
|
||||
show_structure: false,
|
||||
protect_editing: false,
|
||||
@@ -116,6 +116,16 @@ impl Default for PageOptions {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::PageOptions;
|
||||
|
||||
#[test]
|
||||
fn page_options_default_disables_heading_numbers() {
|
||||
assert!(!PageOptions::default().show_heading_numbers);
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct PageBody {
|
||||
|
||||
Reference in New Issue
Block a user