Add post_blank to the rust types.

This commit is contained in:
Tom Alexander
2023-12-21 14:56:58 -05:00
parent 8b85c02ef1
commit 72952adb6b
108 changed files with 318 additions and 109 deletions

View File

@@ -1,12 +1,14 @@
use super::macros::intermediate;
use super::registry::register_footnote_definition;
use super::IntermediateContext;
use super::IAstNode;
use super::IntermediateContext;
use crate::error::CustomError;
use organic::types::StandardProperties;
#[derive(Debug, Clone)]
pub(crate) struct IFootnoteDefinition {}
pub(crate) struct IFootnoteDefinition {
pub(crate) post_blank: organic::types::PostBlank,
}
intermediate!(
IFootnoteDefinition,
@@ -16,12 +18,15 @@ intermediate!(
{
register_footnote_definition(intermediate_context, original.label, &original.children)
.await?;
Ok(IFootnoteDefinition {})
Ok(IFootnoteDefinition {
post_blank: original.get_post_blank(),
})
}
);
#[derive(Debug)]
pub(crate) struct IRealFootnoteDefinition {
// TODO: Do I need post_blank for the real footnote definitions?
pub(crate) footnote_id: usize,
pub(crate) contents: Vec<IAstNode>,
}