Merge branch 'main' into main

This commit is contained in:
pog102 2025-07-15 11:21:45 +03:00 committed by GitHub
commit c09a6a9213
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -46,7 +46,7 @@ impl i64 {
/// or smaller than the minimum 64-bit signed integer. /// or smaller than the minimum 64-bit signed integer.
/// ///
/// - Booleans are converted to `0` or `1`. /// - Booleans are converted to `0` or `1`.
/// - Floats and decimals are truncated to the next 64-bit integer. /// - Floats and decimals are rounded to the next 64-bit integer towards zero.
/// - Strings are parsed in base 10. /// - Strings are parsed in base 10.
/// ///
/// ```example /// ```example

View File

@ -20,8 +20,8 @@ use crate::text::{FontFamily, FontList, FontWeight, LocalName, TextElem};
/// A mathematical equation. /// A mathematical equation.
/// ///
/// Can be displayed inline with text or as a separate block. An equation /// Can be displayed inline with text or as a separate block. An equation
/// becomes block-level through the presence of at least one space after the /// becomes block-level through the presence of whitespace after the opening
/// opening dollar sign and one space before the closing dollar sign. /// dollar sign and whitespace before the closing dollar sign.
/// ///
/// # Example /// # Example
/// ```example /// ```example
@ -41,9 +41,9 @@ use crate::text::{FontFamily, FontList, FontWeight, LocalName, TextElem};
/// ///
/// # Syntax /// # Syntax
/// This function also has dedicated syntax: Write mathematical markup within /// This function also has dedicated syntax: Write mathematical markup within
/// dollar signs to create an equation. Starting and ending the equation with at /// dollar signs to create an equation. Starting and ending the equation with
/// least one space lifts it into a separate block that is centered /// whitespace lifts it into a separate block that is centered horizontally.
/// horizontally. For more details about math syntax, see the /// For more details about math syntax, see the
/// [main math page]($category/math). /// [main math page]($category/math).
#[elem(Locatable, Synthesize, ShowSet, Count, LocalName, Refable, Outlinable)] #[elem(Locatable, Synthesize, ShowSet, Count, LocalName, Refable, Outlinable)]
pub struct EquationElem { pub struct EquationElem {

View File

@ -92,7 +92,7 @@ pub(super) fn define(global: &mut Scope) {
/// ``` /// ```
#[elem(Debug, Construct, PlainText, Repr)] #[elem(Debug, Construct, PlainText, Repr)]
pub struct TextElem { pub struct TextElem {
/// A font family descriptor or priority list of font family descriptor. /// A font family descriptor or priority list of font family descriptors.
/// ///
/// A font family descriptor can be a plain string representing the family /// A font family descriptor can be a plain string representing the family
/// name or a dictionary with the following keys: /// name or a dictionary with the following keys: