mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 04:54:10 +01:00
render-object-table: support adding an anchor to generated tables.
This commit is contained in:
parent
1ed4e40362
commit
2ef9eb9a1c
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
* `title`: optional caption for the table
|
||||
|
||||
* `anchor`: optional HTML element id for the table
|
||||
|
||||
* `properties`: dictionary of the properties to list, each given as:
|
||||
`property_name` : `property_data`
|
||||
|
||||
|
|
@ -19,7 +21,7 @@
|
|||
|
||||
{{ if $properties }}
|
||||
|
||||
<table class>
|
||||
<table{{ if .anchor }} id="{{ .anchor }}"{{ end }}>
|
||||
{{ with $title }}
|
||||
<caption>{{ . }}</caption>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue