Skip to main content

plain_text

Function plain_text 

Source
pub fn plain_text(inlines: &[Inline]) -> String
Expand description

Allocates readable text from inline content without resource access.

Styling containers and link destinations are omitted, image alternative text is retained, and soft and hard breaks both become an ASCII space. The result is not sanitized for a particular output device; terminal consumers should filter control characters before rendering untrusted text.