Skip to content

Commit

Permalink
Remove span element from added-in and changed-in shortcodes (#1972
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zecakeh authored Oct 14, 2024
1 parent 48afe4f commit 69d7dbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelogs/internal/newsfragments/1972.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove `span` element from `added-in` and `changed-in` shortcodes.
4 changes: 2 additions & 2 deletions layouts/shortcodes/added-in.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
4 changes: 2 additions & 2 deletions layouts/shortcodes/changed-in.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

0 comments on commit 69d7dbf

Please sign in to comment.