mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 03:34:08 +01:00
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:
parent
27e71fff10
commit
8dcef22194
|
|
@ -102,7 +102,7 @@ the [Handling Redactions](#handling-redactions) section.
|
|||
{{% /boxes/note %}}
|
||||
|
||||
<!-- 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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
and 4.3.5).
|
||||
|
||||
{{< rver-fragment name="v8-auth-rules" withVersioning=true >}}
|
||||
{{% rver-fragment name="v8-auth-rules" withVersioning=true %}}
|
||||
|
||||
### Redactions
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ completeness.
|
|||
|
||||
### Authorization rules
|
||||
|
||||
{{< rver-fragment name="v8-auth-rules" >}}
|
||||
{{% rver-fragment name="v8-auth-rules" %}}
|
||||
|
||||
### State resolution
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
{{ with .Site.GetPage "rooms/fragments" }}
|
||||
{{ with .Resources.GetMatch (printf "%s%s" $name ".md") }}
|
||||
{{ $content := .Content }}
|
||||
{{ $content := .RenderShortcodes }}
|
||||
{{ if not $withVersioning }}
|
||||
{{ $content = (replace $content "[New in this version]" "") }}
|
||||
{{ $content = (replace $content "[Changed in this version]" "") }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue