Add check for name on paragraph.
This commit is contained in:
@@ -6,6 +6,7 @@ use super::Timestamp;
|
||||
#[derive(Debug)]
|
||||
pub struct Paragraph<'s> {
|
||||
pub source: &'s str,
|
||||
pub name: Option<&'s str>,
|
||||
pub children: Vec<Object<'s>>,
|
||||
}
|
||||
|
||||
@@ -146,6 +147,7 @@ impl<'s> Paragraph<'s> {
|
||||
objects.push(Object::PlainText(PlainText { source: input }));
|
||||
Paragraph {
|
||||
source: input,
|
||||
name: None, // TODO
|
||||
children: objects,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user