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
The current YFM syntax does not support the capability to display different images based on the user's selected theme (light or dark). This proposal introduces an enhancement to the YFM syntax, enabling content creators to specify distinct images for light and dark themes. This will enhance the user experience by ensuring images are appropriately visible and contextually suitable based on the selected theme.
Problem
The current YFM syntax does not support the capability to display different images based on the user's selected theme (light or dark). This proposal introduces an enhancement to the YFM syntax, enabling content creators to specify distinct images for light and dark themes. This will enhance the user experience by ensuring images are appropriately visible and contextually suitable based on the selected theme.
Existing Implementation Reference
GitHub has implemented a similar feature, as detailed in the GitHub Blog Changelog.
Proposed Syntax and Implementation
CSS Styling
To facilitate this feature, specific CSS rules will be required to handle the visibility of images based on the data-theme attribute.
YFM Syntax
The text was updated successfully, but these errors were encountered: