Skip to content

Commit

Permalink
add test for definition list item start
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Aug 19, 2024
1 parent f1a8a3e commit e686a8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ where
MetadataBlock(MetadataBlockKind::PlusesStyle) => formatter.write_str("+++\n"),
List(_) => Ok(()),
Strikethrough => formatter.write_str("~~"),
DefinitionList => todo!(),
DefinitionListTitle => todo!(),
DefinitionListDefinition => todo!(),
DefinitionList => Ok(()),
DefinitionListTitle => Ok(()),
DefinitionListDefinition => formatter.write_str(": "),
}
}
End(ref tag) => match tag {
Expand Down
5 changes: 5 additions & 0 deletions tests/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ mod start {
fn table_cell() {
assert_eq!(s(Start(TableCell)), "|")
}

#[test]
fn definition_list_definition() {
assert_eq!(s(Start(DefinitionListDefinition)), ": ")
}
}

mod end {
Expand Down

0 comments on commit e686a8f

Please sign in to comment.