mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-27 05:24:10 +01:00
The 'Feature Profiles' section of the 'Client-Server API' specification contains a table, showing whether a module is required or optional for every profile. Previously the table was hard to read since "Required" looks visually very similar to "Optional". This commit improves the readability of the table by automatically applying a darker background color to table cells containing "Required" via a new Hugo shortcode. Signed-off-by: Martin Fischer <martin@push-f.com>
7 lines
214 B
HTML
7 lines
214 B
HTML
{{/*
|
|
|
|
This template is used to visually emphasize table cells containing the text "Required".
|
|
|
|
*/}}
|
|
{{ print (replace .Inner "Required" "<span class=required></span>Required") "{.summary-table}" | markdownify }}
|