Home

Math Inline

Properties

The MathInline type has these properties:

NameDescriptionTypeInherited from
idThe identifier for this item.StringEntity
codeThe code of the equation in the mathLanguage.CordMath
mathLanguageThe language used for the equation e.g tex, mathml, asciimath.StringMath
authorsThe authors of the math.Author*Math
provenanceA summary of the provenance of the math.ProvenanceCount*Math
compilationDigestA digest of the code and mathLanguage.CompilationDigestMath
compilationMessagesMessages generated while parsing and compiling the math expression.CompilationMessage*Math
mathmlThe MathML transpiled from the code.StringMath
imagesImages of the math.ImageObject*Math

Related

The MathInline type is related to these types:

  • Parents: Math

  • Children: none

Bindings

The MathInline type is represented in:

Testing

During property-based (a.k.a generative) testing, the properties of the MathInline type are generated using the following strategies.

PropertyComplexityDescriptionStrategy
codeMin+Generate a simple fixed string of math.Cord::from("math")
Low+Generate a random string of up to 10 alphanumeric characters (exclude whitespace which when leading or trailing causes issues for Markdown).r"[a-zA-Z0-9]{1,10}".prop_map(Cord::from)
High+Generate a random string of up to 100 characters (excluding control characters).r"[^\p{C}]{1,100}".prop_map(Cord::from)
MaxGenerate an arbitrary string.String::arbitrary().prop_map(Cord::from)
mathLanguageMin+Fixed as TeX (for testing with Markdown which uses dollars to delimit TeX by default)Some(String::from("tex"))
High+Generate a random string of up to 10 alphanumeric characters.option::of(r"[a-zA-Z0-9]{1,10}")
MaxGenerate an arbitrary string.option::of(String::arbitrary())

This documentation was generated from MathInline.yaml by docs_types.rs.

© 2026 Stencila