mirror of
https://github.com/typst/typst
synced 2025-05-18 11:05:28 +08:00
Update emph.rs docstring (#2847)
This commit is contained in:
parent
962108d168
commit
b8b1a92151
@ -3,7 +3,7 @@ use crate::engine::Engine;
|
|||||||
use crate::foundations::{elem, Content, Show, StyleChain};
|
use crate::foundations::{elem, Content, Show, StyleChain};
|
||||||
use crate::text::{ItalicToggle, TextElem};
|
use crate::text::{ItalicToggle, TextElem};
|
||||||
|
|
||||||
/// Emphasizes content by setting it in italics.
|
/// Emphasizes content by toggling italics.
|
||||||
///
|
///
|
||||||
/// - If the current [text style]($text.style) is `{"normal"}`, this turns it
|
/// - If the current [text style]($text.style) is `{"normal"}`, this turns it
|
||||||
/// into `{"italic"}`.
|
/// into `{"italic"}`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user