- >, W: std::fmt::Write> Writer {
Container::Link(..) => todo!(),
Container::Image(..) => todo!(),
Container::TableCell => self.out.write_str("
")?,
+ Container::DescriptionTerm => self.out.write_str("")?,
Container::RawBlock { .. } => todo!(),
Container::CodeBlock { .. } => todo!(),
Container::Subscript => self.out.write_str("")?,
@@ -106,6 +107,7 @@ impl<'s, I: Iterator- >, W: std::fmt::Write> Writer {
Container::Paragraph => self.out.write_str("")?,
Container::Heading { level } => write!(self.out, "", level)?,
Container::TableCell => self.out.write_str("
| ")?,
+ Container::DescriptionTerm => self.out.write_str("")?,
Container::RawBlock { .. } => todo!(),
Container::CodeBlock { .. } => todo!(),
Container::Link(..) => todo!(),
diff --git a/src/lib.rs b/src/lib.rs
index dad77f6..4c96732 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -60,6 +60,8 @@ pub enum Container<'s> {
Span,
/// A cell element of row within a table.
TableCell,
+ /// A term within a description list.
+ DescriptionTerm,
/// A block with raw markup for a specific output format.
RawBlock { format: &'s str },
/// A block with code in a specific language.
@@ -99,6 +101,7 @@ impl<'s> Container<'s> {
| Self::Div
| Self::Paragraph
| Self::Heading { .. }
+ | Self::DescriptionTerm
| Self::TableCell
| Self::RawBlock { .. }
| Self::CodeBlock { .. } => true,
@@ -132,6 +135,7 @@ impl<'s> Container<'s> {
Self::Paragraph
| Self::Heading { .. }
| Self::TableCell
+ | Self::DescriptionTerm
| Self::RawBlock { .. }
| Self::CodeBlock { .. }
| Self::Span