From 91b5ac9c092cc6056c4223a8975d96c54e41300d Mon Sep 17 00:00:00 2001 From: philipp Date: Sat, 17 Feb 2024 18:05:46 +0100 Subject: [PATCH] push --- src/paragraph/parser/liste.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/paragraph/parser/liste.rs b/src/paragraph/parser/liste.rs index 0d8c7d9..dbee2a6 100644 --- a/src/paragraph/parser/liste.rs +++ b/src/paragraph/parser/liste.rs @@ -63,6 +63,10 @@ impl Liste { } pub(crate) fn get_content(&self) -> Content { - Content::List(self.content.clone()) + if self.content.len() == 1 { + self.content[0].clone() + } else { + Content::List(self.content.clone()) + } } }