Skip to content

Markdown Card images cannot be resized. Worked in 2025.11 not working in 2025.12 #28386

@MankiniChykan

Description

@MankiniChykan

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

Markdown card does not allow changing the image size in 2025.12 but did in 2025.11.
Multiple users with the same problem

Image

Describe the behavior you expected

With my current configuration I would expect the width and height in my card YAML configuration to remain the same

Steps to reproduce the issue

  1. Update from 2025.11 to 2025.12

What version of Home Assistant Core has the issue?

2025.12.0

What was the last working version of Home Assistant Core?

2025.11.3

In which browser are you experiencing the issue?

Google Chrome

Which operating system are you using to run this browser?

Windows

State of relevant entities

Problem-relevant frontend configuration

type: markdown
content: >-
  <img src="https://brands.home-assistant.io/watchman/dark_logo.png" width="32" height="32">

JavaScript errors shown in your browser console/inspector

Additional information

The recent markdown changes have updated styles for img such that they are now height and width auto and max-width 100%. See Add markdown support for assist messages (#27957) · 4a90331 · GitHub

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions