Skip to content

docs-builder not respecting alt text #3045

@shainaraskas

Description

@shainaraskas

Describe the bug

documented here: https://elastic.github.io/docs-builder/syntax/images/#inline-image-titles

For inline images, the alt text always overrides any title specified in the Markdown. This ensures consistent accessibility where both the alt and title attributes contain the same descriptive text.

![Elasticsearch](/syntax/images/observability.png "Different title")

in practice, the title always wins:

![logo cloud](https://doc-icons.s3.us-east-2.amazonaws.com/logo_cloud.svg "Supported on Elastic Cloud Hosted")
Image

Expected behavior

alt text appears as alt text when specified, instead of the title

Steps to reproduce

![logo cloud](https://doc-icons.s3.us-east-2.amazonaws.com/logo_cloud.svg "Supported on Elastic Cloud Hosted")

+ hover over image

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions