From 69d7dbf70314bedbba4f53b001d620bb6397b776 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?K=C3=A9vin=20Commaille?=
<76261501+zecakeh@users.noreply.github.com>
Date: Mon, 14 Oct 2024 19:04:36 +0200
Subject: [PATCH] Remove `span` element from `added-in` and `changed-in`
shortcodes (#1972)
---
changelogs/internal/newsfragments/1972.clarification | 1 +
layouts/shortcodes/added-in.html | 4 ++--
layouts/shortcodes/changed-in.html | 4 ++--
3 files changed, 5 insertions(+), 4 deletions(-)
create mode 100644 changelogs/internal/newsfragments/1972.clarification
diff --git a/changelogs/internal/newsfragments/1972.clarification b/changelogs/internal/newsfragments/1972.clarification
new file mode 100644
index 00000000..dc4a85f4
--- /dev/null
+++ b/changelogs/internal/newsfragments/1972.clarification
@@ -0,0 +1 @@
+Remove `span` element from `added-in` and `changed-in` shortcodes.
diff --git a/layouts/shortcodes/added-in.html b/layouts/shortcodes/added-in.html
index 9f18809d..855810e9 100644
--- a/layouts/shortcodes/added-in.html
+++ b/layouts/shortcodes/added-in.html
@@ -2,8 +2,8 @@
{{- with page.Params.version -}}
{{- if eq $ver . -}}
- [New in this version]
+ [New in this version]
{{- end -}}
{{- else -}}
- [Added in v{{ $ver }}
]
+ [Added in v{{ $ver }}
]
{{- end -}}
diff --git a/layouts/shortcodes/changed-in.html b/layouts/shortcodes/changed-in.html
index 17c1c787..6e4716e0 100644
--- a/layouts/shortcodes/changed-in.html
+++ b/layouts/shortcodes/changed-in.html
@@ -2,8 +2,8 @@
{{- with page.Params.version -}}
{{- if eq $ver . -}}
- [Changed in this version]
+ [Changed in this version]
{{- end -}}
{{- else -}}
- [Changed in v{{ $ver }}
]
+ [Changed in v{{ $ver }}
]
{{- end -}}