diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-21 16:19:46 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-21 16:19:46 +0100 |
| commit | 31f904a2c406953cbce334e02b37a712b9b9d016 (patch) | |
| tree | c23f6e063864d97afb9b3d58c10ce4c2877106c5 /library/src/text | |
| parent | 4af7b9118c5ce612b3d9d7dd06118ce23b731d9c (diff) | |
Split up and document shapes
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/mod.rs | 4 | ||||
| -rw-r--r-- | library/src/text/raw.rs | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/library/src/text/mod.rs b/library/src/text/mod.rs index 4a25197d..3424cce6 100644 --- a/library/src/text/mod.rs +++ b/library/src/text/mod.rs @@ -242,7 +242,9 @@ impl TextNode { /// /// # Example /// ``` + /// #set rect(inset: 0pt) /// #set text(size: 20pt) + /// /// #set text(top-edge: "ascender") /// #rect(fill: aqua)[Typst] /// @@ -256,7 +258,9 @@ impl TextNode { /// /// # Example /// ``` + /// #set rect(inset: 0pt) /// #set text(size: 20pt) + /// /// #set text(bottom-edge: "baseline") /// #rect(fill: aqua)[Typst] /// diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index 3cf7e8e7..c6026f89 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -65,7 +65,7 @@ use crate::prelude::*; /// // that retains the correct baseline. /// #show raw.where(block: false): rect.with( /// fill: luma(240), -/// inset: (x: 3pt), +/// inset: (x: 3pt, y: 0pt), /// outset: (y: 3pt), /// radius: 2pt, /// ) |
