Skip to content

Commit f603645

Browse files
committed
fix: gen_task_list_marker now needs to insert space between marker and content
1 parent e71786b commit f603645

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/generation/generate.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,11 +724,15 @@ fn gen_item(item: &Item, context: &mut Context) -> PrintItems {
724724
}
725725

726726
fn gen_task_list_marker(marker: &TaskListMarker, _: &mut Context) -> PrintItems {
727+
let mut items = PrintItems::new();
727728
if marker.is_checked {
728-
"[x]".into()
729+
items.push_string("[x]".into());
729730
} else {
730-
"[ ]".into()
731+
items.push_string("[ ]".into());
731732
}
733+
734+
items.push_space();
735+
items
732736
}
733737

734738
fn gen_horizontal_rule(_: &HorizontalRule, _: &mut Context) -> PrintItems {

0 commit comments

Comments
 (0)