diff --git a/packages/typo3-docs-theme/resources/template/body/admonition.html.twig b/packages/typo3-docs-theme/resources/template/body/admonition.html.twig index 262bb19b4..a87494e4b 100644 --- a/packages/typo3-docs-theme/resources/template/body/admonition.html.twig +++ b/packages/typo3-docs-theme/resources/template/body/admonition.html.twig @@ -24,8 +24,5 @@ {% if titleOfSeverity %}

{{ titleOfSeverity }}

{% elseif title and isTitled %}

{{ renderNode(title) }}

{% endif %} - {% if title and not isTitled %}

{{ renderNode(title) }}

- {% endif %} {{ renderNode(node) }} - diff --git a/tests/Integration/tests/admonitions/expected/index.html b/tests/Integration/tests/admonitions/expected/index.html index f290c6f0c..0779cc284 100644 --- a/tests/Integration/tests/admonitions/expected/index.html +++ b/tests/Integration/tests/admonitions/expected/index.html @@ -47,7 +47,6 @@

Tip

Hint

-

One line hint

diff --git a/tests/Integration/tests/markdown/md-admonitions/expected/README.html b/tests/Integration/tests/markdown/md-admonitions/expected/README.html new file mode 100644 index 000000000..22aee3b3c --- /dev/null +++ b/tests/Integration/tests/markdown/md-admonitions/expected/README.html @@ -0,0 +1,11 @@ + + +
+

MarkDown admonitions 

+ + +
+ diff --git a/tests/Integration/tests/markdown/md-admonitions/input/README.md b/tests/Integration/tests/markdown/md-admonitions/input/README.md new file mode 100644 index 000000000..a9854d940 --- /dev/null +++ b/tests/Integration/tests/markdown/md-admonitions/input/README.md @@ -0,0 +1,4 @@ +# MarkDown admonitions + +> [!NOTE] +> **Image and screenshot files** should be placed within `Images/MyGuidesFileName/` where `MyGuidesFileName` is your guide's filename without the final `.md`. diff --git a/tests/Integration/tests/markdown/input/guides.xml b/tests/Integration/tests/markdown/md-admonitions/input/guides.xml similarity index 100% rename from tests/Integration/tests/markdown/input/guides.xml rename to tests/Integration/tests/markdown/md-admonitions/input/guides.xml diff --git a/tests/Integration/tests/markdown/expected/README.html b/tests/Integration/tests/markdown/readme/expected/README.html similarity index 100% rename from tests/Integration/tests/markdown/expected/README.html rename to tests/Integration/tests/markdown/readme/expected/README.html diff --git a/tests/Integration/tests/markdown/input/README.md b/tests/Integration/tests/markdown/readme/input/README.md similarity index 100% rename from tests/Integration/tests/markdown/input/README.md rename to tests/Integration/tests/markdown/readme/input/README.md diff --git a/tests/Integration/tests/markdown/readme/input/guides.xml b/tests/Integration/tests/markdown/readme/input/guides.xml new file mode 100644 index 000000000..61d8d869d --- /dev/null +++ b/tests/Integration/tests/markdown/readme/input/guides.xml @@ -0,0 +1,13 @@ + + + + +