summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/description.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/description.rs b/src/description.rs
index 5d0cb1f..e835751 100644
--- a/src/description.rs
+++ b/src/description.rs
@@ -101,6 +101,11 @@ impl FromElements for Description
.map(Part::InformalTable)
.map_err(Self::Error::InvalidInformalTable),
),
+ "itemizedlist" => Some(
+ ItemizedList::from_elements(part_elem.child_elements())
+ .map(Part::ItemizedList)
+ .map_err(Self::Error::InvalidItemizedList),
+ ),
"title" => None,
name => Some(Err(Self::Error::UnknownPartFound(name.to_string()))),
})
@@ -132,6 +137,10 @@ pub enum Error
/// Invalid informal table.
#[error("Invalid informal table")]
InvalidInformalTable(#[source] InformalTableError),
+
+ /// Invalid itemized list.
+ #[error("Invalid itemized list")]
+ InvalidItemizedList(#[source] ItemizedListError),
}
/// Description part.
@@ -149,6 +158,9 @@ pub enum Part
/// Informal table.
InformalTable(InformalTable),
+
+ /// Itemized list.
+ ItemizedList(ItemizedList),
}
/// Reference entry description paragraph.