-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Environment
- OS: Windows 11 Enterprise 23H2
- Node.js: 22.18.0
- Nuxt version:
^4.2.2 - Docus version:
latest - nuxt-studio: 1.0.0-beta.3
Version
v2
Reproduction
- Create a Markdown file.
- Insert an image manually without a leading slash → works on site, not in editor.
- Insert an image via the editor (leading slash added automatically) → works in editor, not on site.
Description
When adding images in Markdown files, they only display correctly in one of two contexts — either on the rendered site or in the Nuxt Studio editor — depending on whether the image path has a leading slash.
If I use this format:
The image is displayed correctly on the rendered site, but not in the editor.
If I insert an image via the Nuxt Studio editor, it uses a leading slash:
In this case, the image displays correctly in the editor, but not on the rendered site.
Additional context
I have an environment variable that overrides the base URL. (NUXT_APP_BASE_URL)
It's possible that this affects how paths are resolved.
Logs
Metadata
Metadata
Assignees
Labels
No labels