mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
parent
5933577dcf
commit
f2193307c4
@ -452,6 +452,10 @@ pub struct TextElem {
|
|||||||
/// Whether to turn numbers into fractions. Setting this to `{true}`
|
/// Whether to turn numbers into fractions. Setting this to `{true}`
|
||||||
/// enables the OpenType `frac` font feature.
|
/// enables the OpenType `frac` font feature.
|
||||||
///
|
///
|
||||||
|
/// It is not advisable to enable this property globally as it will mess
|
||||||
|
/// with all appearances of numbers after a slash (e.g., in URLs). Instead,
|
||||||
|
/// enable it locally when you want a fraction.
|
||||||
|
///
|
||||||
/// ```example
|
/// ```example
|
||||||
/// 1/2 \
|
/// 1/2 \
|
||||||
/// #text(fractions: true)[1/2]
|
/// #text(fractions: true)[1/2]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user