From ebfdb1dafa430786db10dad2ef7d5467c1bdbed1 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 2 Jul 2023 19:59:52 +0200 Subject: Move everything into `crates/` directory --- library/src/layout/hide.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 library/src/layout/hide.rs (limited to 'library/src/layout/hide.rs') diff --git a/library/src/layout/hide.rs b/library/src/layout/hide.rs deleted file mode 100644 index c6e83e0c..00000000 --- a/library/src/layout/hide.rs +++ /dev/null @@ -1,30 +0,0 @@ -use crate::prelude::*; - -/// Hides content without affecting layout. -/// -/// The `hide` function allows you to hide content while the layout still 'sees' -/// it. This is useful to create whitespace that is exactly as large as some -/// content. It may also be useful to redact content because its arguments are -/// not included in the output. -/// -/// ## Example { #example } -/// ```example -/// Hello Jane \ -/// #hide[Hello] Joe -/// ``` -/// -/// Display: Hide -/// Category: layout -#[element(Show)] -pub struct HideElem { - /// The content to hide. - #[required] - pub body: Content, -} - -impl Show for HideElem { - #[tracing::instrument(name = "HideElem::show", skip(self))] - fn show(&self, _: &mut Vt, _: StyleChain) -> SourceResult { - Ok(self.body().styled(MetaElem::set_data(vec![Meta::Hide]))) - } -} -- cgit v1.2.3