use crate::foundations::{func, Str}; /// Creates blind text. /// /// This function yields a Latin-like _Lorem Ipsum_ blind text with the given /// number of words. The sequence of words generated by the function is always /// the same but randomly chosen. As usual for blind texts, it does not make any /// sense. Use it as a placeholder to try layouts. /// /// # Example /// ```example /// = Blind Text /// #lorem(30) /// /// = More Blind Text /// #lorem(15) /// ``` #[func(keywords = ["Blind Text"])] pub fn lorem( /// The length of the blind text in words. words: usize, ) -> Str { lipsum::lipsum(words).replace("--", "–").into() }