Remove `span` element from `added-in` and `changed-in` shortcodes (#1972)

pull/1976/head
Kévin Commaille 1 month ago committed by GitHub
parent 48afe4faa5
commit 69d7dbf703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1 @@
Remove `span` element from `added-in` and `changed-in` shortcodes.

@ -2,8 +2,8 @@
{{- with page.Params.version -}}
{{- if eq $ver . -}}
<span><strong>[New in this version]</strong></span>
<strong>[New in this version]</strong>
{{- end -}}
{{- else -}}
<span><strong>[Added in <code>v{{ $ver }}</code>]</strong></span>
<strong>[Added in <code>v{{ $ver }}</code>]</strong>
{{- end -}}

@ -2,8 +2,8 @@
{{- with page.Params.version -}}
{{- if eq $ver . -}}
<span><strong>[Changed in this version]</strong></span>
<strong>[Changed in this version]</strong>
{{- end -}}
{{- else -}}
<span><strong>[Changed in <code>v{{ $ver }}</code>]</strong></span>
<strong>[Changed in <code>v{{ $ver }}</code>]</strong>
{{- end -}}

Loading…
Cancel
Save