diff options
Diffstat (limited to 'src/ast/node.rs')
| -rw-r--r-- | src/ast/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast/node.rs b/src/ast/node.rs index 1040d2b..95190d2 100644 --- a/src/ast/node.rs +++ b/src/ast/node.rs @@ -173,9 +173,9 @@ pub enum Node { } impl Node { - /// Obtain the Gemtext content of a single [`Node`] as a [`String`] + /// Convert a single [`Node`] of any node type to a Gemtext [`String`] #[must_use] - pub fn content(&self) -> String { + pub fn to_gemtext(&self) -> String { super::Ast::from_nodes(vec![self.to_owned()]).to_gemtext() } } |