diff --git a/gemtext/src/lib.rs b/gemtext/src/lib.rs index c83a7bd..090f2f9 100644 --- a/gemtext/src/lib.rs +++ b/gemtext/src/lib.rs @@ -23,6 +23,17 @@ impl Builder { /// This is equivilent to calling [`text()`] with an empty string, or pushing a blank /// [`Node`] /// + /// ``` + /// # use gemtext::Builder; + /// let greeting = Builder::new() + /// .text("Hello") + /// .blank_line() + /// .text("universe") + /// .to_string(); + /// + /// assert_eq!(greeting.trim(), "Hello\n\nuniverse"); + /// ``` + /// /// [`text()`]: Self::text() pub fn blank_line(mut self) -> Self { self.nodes.push(Node::blank());