Fix ToC for room versions pages

Like for the cs-module shortcode, use .RenderShortcodes
instead of .Content for the rver-fragment shortcode,
so the headings are detected by Hugo.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-06-20 15:26:06 +02:00
parent 27e71fff10
commit 8dcef22194
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D
4 changed files with 4 additions and 4 deletions

View file

@ -102,7 +102,7 @@ the [Handling Redactions](#handling-redactions) section.
{{% /boxes/note %}} {{% /boxes/note %}}
<!-- set withVersioning=true so we get all the "new in this version" stuff --> <!-- set withVersioning=true so we get all the "new in this version" stuff -->
{{< rver-fragment name="v3-auth-rules" withVersioning=true >}} {{% rver-fragment name="v3-auth-rules" withVersioning=true %}}
## Unchanged from v2 ## Unchanged from v2

View file

@ -87,7 +87,7 @@ room without invite. Otherwise, the room version inherits all properties of
points for handling `content.join_authorised_via_users_server` are added (Rule 4.2 points for handling `content.join_authorised_via_users_server` are added (Rule 4.2
and 4.3.5). and 4.3.5).
{{< rver-fragment name="v8-auth-rules" withVersioning=true >}} {{% rver-fragment name="v8-auth-rules" withVersioning=true %}}
### Redactions ### Redactions

View file

@ -83,7 +83,7 @@ completeness.
### Authorization rules ### Authorization rules
{{< rver-fragment name="v8-auth-rules" >}} {{% rver-fragment name="v8-auth-rules" %}}
### State resolution ### State resolution

View file

@ -19,7 +19,7 @@
{{ with .Site.GetPage "rooms/fragments" }} {{ with .Site.GetPage "rooms/fragments" }}
{{ with .Resources.GetMatch (printf "%s%s" $name ".md") }} {{ with .Resources.GetMatch (printf "%s%s" $name ".md") }}
{{ $content := .Content }} {{ $content := .RenderShortcodes }}
{{ if not $withVersioning }} {{ if not $withVersioning }}
{{ $content = (replace $content "[New in this version]" "") }} {{ $content = (replace $content "[New in this version]" "") }}
{{ $content = (replace $content "[Changed in this version]" "") }} {{ $content = (replace $content "[Changed in this version]" "") }}