summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout
diff options
context:
space:
mode:
authorSébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com>2023-11-19 19:23:00 +0100
committerGitHub <noreply@github.com>2023-11-19 19:23:00 +0100
commit9b5b3b2557008b28ba3e530fcf50942faa706ebe (patch)
treeba5939e528c7d3d95582470420f90f47ed22ab04 /crates/typst-library/src/layout
parentb479be8e9e31191623df41702bbc3ad96d5b4ebe (diff)
Added `ghost` attr to `elem` macro (#2718)
Diffstat (limited to 'crates/typst-library/src/layout')
-rw-r--r--crates/typst-library/src/layout/par.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/typst-library/src/layout/par.rs b/crates/typst-library/src/layout/par.rs
index 2028c9fd..2d7c9080 100644
--- a/crates/typst-library/src/layout/par.rs
+++ b/crates/typst-library/src/layout/par.rs
@@ -42,6 +42,7 @@ use crate::text::{
pub struct ParElem {
/// The spacing between lines.
#[resolve]
+ #[ghost]
#[default(Em::new(0.65).into())]
pub leading: Length,
@@ -54,6 +55,7 @@ pub struct ParElem {
/// Note that the current [alignment]($align) still has an effect on the
/// placement of the last line except if it ends with a
/// [justified line break]($linebreak.justify).
+ #[ghost]
#[default(false)]
pub justify: bool,
@@ -78,6 +80,7 @@ pub struct ParElem {
/// challenging to break in a visually
/// pleasing way.
/// ```
+ #[ghost]
pub linebreaks: Smart<Linebreaks>,
/// The indent the first line of a paragraph should have.
@@ -90,9 +93,11 @@ pub struct ParElem {
/// the [paragraph spacing]($block.spacing) to the [`leading`] when
/// using this property (e.g. using
/// `[#show par: set block(spacing: 0.65em)]`).
+ #[ghost]
pub first_line_indent: Length,
/// The indent all but the first line of a paragraph should have.
+ #[ghost]
#[resolve]
pub hanging_indent: Length,