Add content method to plain::Paragraph

This commit is contained in:
Héctor Ramón Jiménez 2025-05-04 00:38:51 +02:00
parent fe95b26d53
commit d643bd5ba2
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -143,4 +143,9 @@ impl<P: Paragraph> Plain<P> {
pub fn raw(&self) -> &P {
&self.raw
}
/// Returns the current content of the plain [`Paragraph`].
pub fn content(&self) -> &str {
&self.content
}
}