elastic / elastic/docs-builder

docs-builder not respecting alt text

Open
#3,045 4 comments 0 reactions 0 assignees View on GitHub
ai-triaged bug needs triage
Dominant language
C#
Stars
24
Forks
44
Avg merge
1d 7h
Merged PRs (30d)
146

Description

### 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

- [x] docs-builder
- [ ] migration tooling
- [ ] I'm not sure

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.