Use "whitespace" instead of "space" to denote block-level equation in docs (#6591)
This commit is contained in:
parent
0264534928
commit
b1a091a236
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue