Match objects in cells.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use super::object::{Object, TextMarkup};
|
||||
use super::object::Object;
|
||||
use super::object::TextMarkup;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Paragraph<'s> {
|
||||
@@ -11,6 +12,12 @@ pub struct Comment<'s> {
|
||||
pub source: &'s str,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct TableCell<'s> {
|
||||
pub source: &'s str,
|
||||
pub children: Vec<Object<'s>>,
|
||||
}
|
||||
|
||||
impl<'s> Paragraph<'s> {
|
||||
pub fn of_text(input: &'s str) -> Self {
|
||||
let mut objects = Vec::with_capacity(1);
|
||||
|
||||
Reference in New Issue
Block a user