From 6c6c8e6bd5f69f24cc57eb0efa59a27ca377505b Mon Sep 17 00:00:00 2001 From: Giorgio Garofalo Date: Sun, 23 Jun 2024 16:07:58 +0200 Subject: [PATCH] Slight HTML rendering code improvement --- .../quarkdown/rendering/html/QuarkdownHtmlNodeRenderer.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/kotlin/eu/iamgio/quarkdown/rendering/html/QuarkdownHtmlNodeRenderer.kt b/core/src/main/kotlin/eu/iamgio/quarkdown/rendering/html/QuarkdownHtmlNodeRenderer.kt index 907c129b..f39b41a9 100644 --- a/core/src/main/kotlin/eu/iamgio/quarkdown/rendering/html/QuarkdownHtmlNodeRenderer.kt +++ b/core/src/main/kotlin/eu/iamgio/quarkdown/rendering/html/QuarkdownHtmlNodeRenderer.kt @@ -75,11 +75,10 @@ class QuarkdownHtmlNodeRenderer(context: Context) : BaseHtmlNodeRenderer(context div("box") { if (node.title != null) { tag("header") { - tag("h4") { - +node.title - } + tag("h4", node.title) } } + +node.children // Box style.