Skip to content

Commit 39a6b8c

Browse files
bteaautofix-ci[bot]ghostdevv
authored
docs: fix broken badge note block by rewording contents (#2925)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Willow (GHOST) <git@willow.sh>
1 parent eed262b commit 39a6b8c

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

docs/content/2.guide/6.badges.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,8 @@ Overrides the default label color. You can pass a standard hex code (with or wit
8888
- **Usage**: `?labelColor=HEX_CODE`
8989

9090
::note
91-
In URLs, `#` starts the fragment part. If you write `?labelColor=#000000`, the `#000000` part is treated as a fragment and the query value is lost.
92-
93-
- Wrong: `.../badge/version/nuxt?labelColor=#000000`
94-
- Correct (URL-encoded `#`): `.../badge/version/nuxt?labelColor=%23000000`
95-
- Also correct (no prefix): `.../badge/version/nuxt?labelColor=000000`
96-
::
91+
In URLs, `#` starts the fragment part. If you write `?labelColor=#000000`, the `#000000` part is treated as a fragment and the query value is lost. Instead, you should URL-encode the `#` as `%23`, or omit the `#` prefix entirely.
92+
::
9793

9894
### `color`
9995

@@ -103,12 +99,8 @@ Overrides the default strategy color. You can pass a standard hex code (with or
10399
- **Usage**: `?color=HEX_CODE`
104100

105101
::note
106-
In URLs, `#` starts the fragment part. If you write `?color=#000000`, the `#000000` part is treated as a fragment and the query value is lost.
107-
108-
- Wrong: `.../badge/version/nuxt?color=#000000`
109-
- Correct (URL-encoded `#`): `.../badge/version/nuxt?color=%23000000`
110-
- Also correct (no prefix): `.../badge/version/nuxt?color=000000`
111-
::
102+
In URLs, `#` starts the fragment part. If you write `?labelColor=#000000`, the `#000000` part is treated as a fragment and the query value is lost. Instead, you should URL-encode the `#` as `%23`, or omit the `#` prefix entirely.
103+
::
112104

113105
| Example | URL |
114106
| :------------- | :------------------------------------ |

0 commit comments

Comments
 (0)