diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-20 16:08:16 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-20 16:11:37 +0100 |
| commit | f5f7df7247ae29800e0290774a50942e2485beea (patch) | |
| tree | 57253ba51efdae3ac8e4eea722428924625b514c /library/src/text/shift.rs | |
| parent | b8ffd3ad3dcaebddbc674e03494e0d818b21fa51 (diff) | |
Documentation
Diffstat (limited to 'library/src/text/shift.rs')
| -rw-r--r-- | library/src/text/shift.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/library/src/text/shift.rs b/library/src/text/shift.rs index 969dce68..5ea3b5ea 100644 --- a/library/src/text/shift.rs +++ b/library/src/text/shift.rs @@ -4,6 +4,7 @@ use typst::util::EcoString; use super::{variant, SpaceNode, TextNode, TextSize}; use crate::prelude::*; +/// # Subscript /// Sub- or superscript text. /// /// The text is rendered smaller and its baseline is raised/lowered. To provide @@ -11,12 +12,12 @@ use crate::prelude::*; /// superscript codepoints. If that fails, we fall back to rendering shrunk /// normal letters in a raised way. /// -/// # Parameters +/// ## Parameters /// - body: Content (positional, required) /// The text to display in sub- or superscript. /// -/// # Tags -/// - text +/// ## Category +/// text #[func] #[capable(Show)] #[derive(Debug, Hash)] |
