pub enum SubstitutionStep {
SpecialCharacters,
Quotes,
AttributeReferences,
CharacterReplacements,
Macros,
PostReplacement,
Callouts,
}Expand description
Each substitution type replaces characters, markup, attribute references, and macros in text with the appropriate output for a given converter. When a document is processed, up to six substitution types may be carried out depending on the block or inline element’s assigned substitution group. The processor runs the substitutions in the following order:
Variants§
SpecialCharacters
Searches for three characters (<, >, &) and replaces them with
their named character references.
Quotes
Replacement of formatting markup on inline elements.
AttributeReferences
Replacement of attribute references by the values they reference.
CharacterReplacements
Replaces textual characters such as marks, arrows, and dashes and replaces them with the decimal format of their Unicode code point, i.e., a numeric character reference.
Macros
Replaces a macro’s content with the appropriate built-in and user-defined configuration.
PostReplacement
Replaces the line break character, + with a line-end marker.
Callouts
Processes callouts in literal, listing, and source blocks.
Trait Implementations§
Source§impl Clone for SubstitutionStep
impl Clone for SubstitutionStep
Source§fn clone(&self) -> SubstitutionStep
fn clone(&self) -> SubstitutionStep
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more