Skip to content

Conversation

@osulyanov
Copy link

@osulyanov osulyanov commented Dec 16, 2024

Documents Add image captions support.

Example Syntax

![Alt text](_images/image.png "Caption text" =100x100){ caption }

In this example, the "Caption text" should be rendered within a figcaption tag below the image.

Example HTML Output

The resulting HTML should look like this:

<figure>
    <img src="_images/image.png" alt="Alt text" width="100" height="100" title="Caption text">
    <figcaption>Caption text</figcaption>
</figure>

DOCSTOOLS-3428

Related issue: diplodoc-platform/transform#514

@osulyanov osulyanov changed the title doc: Document image captions support Document image captions support Dec 16, 2024
@github-actions
Copy link

✅ Documentation build

Revision built successfully
Revision preview link

Build logs

Warnings (1)

⚠️ Variable translate.target-lang not found in /ru/tools/docs/translate.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant