Skip to main content

digest_text

Function digest_text 

Source
pub fn digest_text(stuff: Tokens) -> Result<Digested>
Expand description

Digest tokens in text mode, whatever mode the caller is in.

Port of Perl Package.pm:DigestText L405-411: brackets the digestion in beginMode/endMode so that material which must come out as text — a title, a caption, an alt string — does so even when it is being read from inside math. Compare digest_literal, which additionally forces an ASCII encoding and leaves the mode’s other side-effects out.