Create an intermediate ast node type.
This commit is contained in:
@@ -2,6 +2,7 @@ use std::path::PathBuf;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
use super::footnote_definition::IRealFootnoteDefinition;
|
||||
use super::registry::Registry;
|
||||
use super::IDocumentElement;
|
||||
use super::IHeading;
|
||||
@@ -15,6 +16,8 @@ pub(crate) struct BlogPostPage {
|
||||
pub(crate) title: Option<String>,
|
||||
|
||||
pub(crate) children: Vec<IDocumentElement>,
|
||||
|
||||
pub(crate) footnotes: Vec<IRealFootnoteDefinition>,
|
||||
}
|
||||
|
||||
impl BlogPostPage {
|
||||
@@ -36,10 +39,13 @@ impl BlogPostPage {
|
||||
));
|
||||
}
|
||||
|
||||
// TODO: Get footnote definitions
|
||||
|
||||
Ok(BlogPostPage {
|
||||
path,
|
||||
title: get_title(&document),
|
||||
children,
|
||||
footnotes: Vec::new(), // TODO
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user