Match objects in cells.

This commit is contained in:
Tom Alexander
2023-04-19 22:09:53 -04:00
parent 55201e905a
commit 49f5b65acf
3 changed files with 17 additions and 7 deletions

View File

@@ -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);