Standardize the construction of intermediate BlogPostPage.
This commit is contained in:
@@ -7,9 +7,15 @@ pub(crate) struct IVerbatim {
|
||||
pub(crate) contents: String,
|
||||
}
|
||||
|
||||
intermediate!(IVerbatim, Verbatim, original, _registry, {
|
||||
Ok(IVerbatim {
|
||||
// TODO: Should this coalesce whitespace like PlainText?
|
||||
contents: original.contents.to_owned(),
|
||||
})
|
||||
});
|
||||
intermediate!(
|
||||
IVerbatim,
|
||||
&'orig organic::types::Verbatim<'parse>,
|
||||
original,
|
||||
_registry,
|
||||
{
|
||||
Ok(IVerbatim {
|
||||
// TODO: Should this coalesce whitespace like PlainText?
|
||||
contents: original.contents.to_owned(),
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user