From d643bd5ba2b30d707492d9a19cc854e195b9ef44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 4 May 2025 00:38:51 +0200 Subject: [PATCH] Add `content` method to `plain::Paragraph` --- core/src/text/paragraph.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/text/paragraph.rs b/core/src/text/paragraph.rs index 9e17a65e..2b905dbc 100644 --- a/core/src/text/paragraph.rs +++ b/core/src/text/paragraph.rs @@ -143,4 +143,9 @@ impl Plain

{ pub fn raw(&self) -> &P { &self.raw } + + /// Returns the current content of the plain [`Paragraph`]. + pub fn content(&self) -> &str { + &self.content + } }