Add note to text fractions

Fixes #465
Fixes #1105
This commit is contained in:
Laurenz 2023-05-23 15:00:59 +02:00
parent 5933577dcf
commit f2193307c4

View File

@ -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]