Add intermediate stage for text markup.

This commit is contained in:
Tom Alexander
2023-10-31 19:57:04 -04:00
parent ae933b491e
commit 0fae417610
8 changed files with 97 additions and 15 deletions

View File

@@ -1,6 +1,15 @@
use super::macros::intermediate;
use crate::error::CustomError;
use super::macros::inoop;
#[derive(Debug, Clone)]
pub(crate) struct IVerbatim {
pub(crate) contents: String,
}
inoop!(IVerbatim, Verbatim);
intermediate!(IVerbatim, Verbatim, original, _registry, {
Ok(IVerbatim {
// TODO: Should this coalesce whitespace like PlainText?
contents: original.contents.to_owned(),
})
});