Skip to content

Support for dark mode alternate images in markdown #35545

@ybizeul

Description

@ybizeul

Feature Description

GitHub supports embedding both variant of an image in markdown (See https://www.stefanjudis.com/notes/how-to-define-dark-light-mode-images-in-github-markdown/)

Basically it works by using this syntax :

![fperm schema](./schema-dark.svg#gh-dark-mode-only)
![fperm schema](./schema-light.svg#gh-light-mode-only)

It would be nice to have this supported in Gitea markdown

Currently, both images are displayed.

Screenshots

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtopic/uiChange the appearance of the Gitea UI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions