diff --git a/changelogs/internal/newsfragments/1880.clarification b/changelogs/internal/newsfragments/1880.clarification
new file mode 100644
index 00000000..56090e20
--- /dev/null
+++ b/changelogs/internal/newsfragments/1880.clarification
@@ -0,0 +1 @@
+Fix validation errors in generated HTML.
diff --git a/content/client-server-api/modules/push.md b/content/client-server-api/modules/push.md
index c674bac9..2d828a01 100644
--- a/content/client-server-api/modules/push.md
+++ b/content/client-server-api/modules/push.md
@@ -521,7 +521,7 @@ Definition:
}
```
- **`.m.rule.is_user_mention`**
+ **`.m.rule.is_user_mention`**
{{< added-in v="1.7" >}}
@@ -555,7 +555,7 @@ Definition:
}
```
- **`.m.rule.contains_display_name`**
+ **`.m.rule.contains_display_name`**
{{% changed-in v="1.7" %}}
@@ -590,7 +590,7 @@ Definition:
}
```
- **`.m.rule.is_room_mention`**
+ **`.m.rule.is_room_mention`**
{{< added-in v="1.7" >}}
@@ -624,7 +624,7 @@ Definition:
}
```
- **`.m.rule.roomnotif`**
+ **`.m.rule.roomnotif`**
{{% changed-in v="1.7" %}}
@@ -662,7 +662,7 @@ Definition:
}
```
-**`.m.rule.tombstone`**
+**`.m.rule.tombstone`**
Matches any state event whose type is `m.room.tombstone`. This is
intended to notify users of a room when it is upgraded, similar to what
@@ -696,7 +696,7 @@ Definition:
}
```
-**`.m.rule.reaction`**
+**`.m.rule.reaction`**
{{% added-in v="1.7" %}}
@@ -776,7 +776,7 @@ Definition:
##### Default Content Rules
- **`.m.rule.contains_user_name`**
+ **`.m.rule.contains_user_name`**
{{% changed-in v="1.7" %}}
diff --git a/layouts/partials/events/render-event.html b/layouts/partials/events/render-event.html
index 71ba60bd..154e51bf 100644
--- a/layouts/partials/events/render-event.html
+++ b/layouts/partials/events/render-event.html
@@ -101,4 +101,6 @@
{{ end }}
{{ end }}
+
+
diff --git a/layouts/partials/openapi/render-content-type.html b/layouts/partials/openapi/render-content-type.html
index 036522de..96033e16 100644
--- a/layouts/partials/openapi/render-content-type.html
+++ b/layouts/partials/openapi/render-content-type.html
@@ -16,8 +16,10 @@
- Content-Type |
- Description |
+
+ Content-Type |
+ Description |
+
{{ range $idx, $content_type := $content_types }}
diff --git a/layouts/partials/openapi/render-object-table.html b/layouts/partials/openapi/render-object-table.html
index d2b09acb..3fd49f0b 100644
--- a/layouts/partials/openapi/render-object-table.html
+++ b/layouts/partials/openapi/render-object-table.html
@@ -31,9 +31,11 @@
{{ . }}
{{ end }}
- Name |
- Type |
- Description |
+
+ Name |
+ Type |
+ Description |
+
{{ range $property_name, $property := $properties }}
@@ -68,7 +70,7 @@
{{ if reflect.IsMap .additionalProperties }}
- <Other properties> |
+ <Other properties> |
{{ partial "partials/property-type" .additionalProperties | safeHTML }} |
{{ partial "partials/property-description" (dict "property" .additionalProperties) }} |
@@ -90,8 +92,10 @@ resolve-additional-types.)
{{ . }}
{{ end }}
- Type |
- Description |
+
+ Type |
+ Description |
+
{{ $property := . }}
diff --git a/layouts/partials/openapi/render-operation.html b/layouts/partials/openapi/render-operation.html
index 8c6fce0e..ef525353 100644
--- a/layouts/partials/openapi/render-operation.html
+++ b/layouts/partials/openapi/render-operation.html
@@ -46,7 +46,7 @@
{{ partial "changed-in" (dict "changes_dict" (index $operation_data "x-changedInMatrixVersion")) }}
{{ end -}}
-{{ $operation_data.description | markdownify }}
+{{ $operation_data.description | page.RenderString (dict "display" "block") }}
diff --git a/layouts/partials/openapi/render-responses.html b/layouts/partials/openapi/render-responses.html
index 0ffc4884..80dcb582 100644
--- a/layouts/partials/openapi/render-responses.html
+++ b/layouts/partials/openapi/render-responses.html
@@ -20,8 +20,10 @@
- Status |
- Description |
+
+ Status |
+ Description |
+
{{ range $code, $response := $responses }}
diff --git a/layouts/shortcodes/definition.html b/layouts/shortcodes/definition.html
index a1f0904e..f5d50e75 100644
--- a/layouts/shortcodes/definition.html
+++ b/layouts/shortcodes/definition.html
@@ -66,4 +66,6 @@
{{ jsonify (dict "indent" " ") $example }}
```
+
+