Avoid nesting p HTML elements

A p HTML element cannot contain other block elements,
so the "parent" element is closed when the first "child" one is opened.

We need to use Page.RenderString with options
to force Hugo to keep the wrapping p elements
even if the content contains a single paragraph.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-06-20 05:00:38 +02:00
parent 37855783b9
commit 9bb0ecc9d4
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D

View file

@ -46,7 +46,7 @@
{{ partial "changed-in" (dict "changes_dict" (index $operation_data "x-changedInMatrixVersion")) }}
{{ end -}}
<p>{{ $operation_data.description | markdownify }}</p>
{{ $operation_data.description | page.RenderString (dict "display" "block") }}
<table class="basic-info">