Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions crates/typst-library/src/layout/hide.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ use crate::diag::SourceResult;
use crate::engine::Engine;
use crate::foundations::{elem, Content, Packed, Show, StyleChain};

/// 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.
/// `hide`関数を用いると、レイアウトにコンテンツを「認識」させながらコンテンツを隠すことができます。
/// これは何らかのコンテンツと全く同じ大きさを持つ空白を作る際に便利です。
/// 引数が出力に含まれないため、コンテンツを削除する際にも便利かもしれません。
///
/// # Example
/// #
/// ```example
/// Hello Jane \
/// #hide[Hello] Joe
/// ```
#[elem(Show)]
pub struct HideElem {
/// The content to hide.
/// 隠したいコンテンツ。
#[required]
pub body: Content,

Expand Down
2 changes: 1 addition & 1 deletion website/translation-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"/docs/reference/layout/direction/": "untranslated",
"/docs/reference/layout/fraction/": "untranslated",
"/docs/reference/layout/grid/": "untranslated",
"/docs/reference/layout/hide/": "untranslated",
"/docs/reference/layout/hide/": "translated",
"/docs/reference/layout/layout/": "untranslated",
"/docs/reference/layout/length/": "untranslated",
"/docs/reference/layout/measure/": "untranslated",
Expand Down