You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a TS Type entry is marked as optional with ?: and preceded with a = (triggering the highlight of the lines below) at some point in the code block, the rendered HTML is cut of several characters.
Bad
typeUseFetchOptions={key?: string}
Good
typeUseFetchOptions{key?: string}
EDIT: Also happens with other tokens, such as => under certain circumstances. (See Stackblitz repro)
Impacted themes (I didn't test them all): github-light, github-dark, monokai
Environment
Linux
v16.14.2
3.0.0
1.0.0
npm@7.17.0
vite
modules
,content
@nuxt/content@2.2.2
-
Reproduction
https://stackblitz.com/edit/github-3zzmac?file=nuxt.config.ts,content%2Findex.md
(See also https://nuxt.com/docs/api/composables/use-fetch#type)
Describe the bug
When a TS
Type
entry is marked as optional with?:
and preceded with a=
(triggering the highlight of the lines below) at some point in the code block, the rendered HTML is cut of several characters.Bad
Good
EDIT: Also happens with other tokens, such as
=>
under certain circumstances. (See Stackblitz repro)Impacted themes (I didn't test them all): github-light, github-dark, monokai
Additional context
First reported here: nuxt/nuxt#15526
The text was updated successfully, but these errors were encountered: