diff options
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)] |
