From 24cb7f20cd89868f049ea99f7863c61d7a06fbc4 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 11 Feb 2022 16:56:56 +0100 Subject: [PATCH] Minor tweak for codeblocks with captions --- src/Templates/default/html/code.html.twig | 2 +- tests/fixtures/expected/blocks/code-blocks/code-caption.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Templates/default/html/code.html.twig b/src/Templates/default/html/code.html.twig index 47ef451..32e2fc7 100644 --- a/src/Templates/default/html/code.html.twig +++ b/src/Templates/default/html/code.html.twig @@ -1,4 +1,4 @@ -
+
{% if caption %}
{{ caption }}
{% endif %} diff --git a/tests/fixtures/expected/blocks/code-blocks/code-caption.html b/tests/fixtures/expected/blocks/code-blocks/code-caption.html index 62c672b..a4eaf9d 100644 --- a/tests/fixtures/expected/blocks/code-blocks/code-caption.html +++ b/tests/fixtures/expected/blocks/code-blocks/code-caption.html @@ -1,4 +1,4 @@ -
+
config/routes.php
1
@@ -13,7 +13,7 @@
-
+
config/routes.php
1