Skip to content

Commit

Permalink
fixup! Use a compile-time checked builder bon
Browse files Browse the repository at this point in the history
add missing defaults.
  • Loading branch information
kivikakk committed Oct 22, 2024
1 parent ecc443c commit a107551
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,9 @@ pub struct RenderOptions {
/// assert_eq!(markdown_to_html(input, &options),
/// "<ul class=\"contains-task-list\">\n<li class=\"task-list-item\"><input type=\"checkbox\" class=\"task-list-item-checkbox\" disabled=\"\" /> Foo</li>\n</ul>\n");
/// ```
#[builder(default)]
pub tasklist_classes: bool,

/// Render ordered list with a minimum marker width.
/// Having a width lower than 3 doesn't do anything.
///
Expand All @@ -955,6 +957,7 @@ pub struct RenderOptions {
/// assert_eq!(markdown_to_commonmark(input, &options),
/// "1. Something\n");
/// ```
#[builder(default)]
pub ol_width: usize,
}

Expand Down

0 comments on commit a107551

Please sign in to comment.