Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update README to recommend blockquote syntax for notes and warnings, …
…deprecating the `<Tip>` component for new content.
  • Loading branch information
mishig25 committed Sep 24, 2025
commit c1a102d9972f268d5d986bc846f680fd0bfa05ad
22 changes: 4 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ Example: [here](https://github.com/huggingface/transformers/blob/0f0e1a2c2bff685

### Tip

To write a block that you'd like to see highlighted as a note or warning, place your content between the following
markers.
To write a block that you'd like to see highlighted as a note or warning, use the blockquote syntax. This is the
preferred approach for new content.

Syntax:

Expand All @@ -260,18 +260,10 @@ Syntax:
> Second line
```

or

```html
<Tip>

Write your note here

</Tip>
```

Example: [here](https://github.com/huggingface/transformers/blob/0f0e1a2c2bff68541a5b9770d78e0fb6feb7de72/docs/source/en/create_a_model.md#L282-L286)

Legacy docs may still use the `<Tip>` component, but we recommend migrating to blockquotes when updating files.

For warnings, change the introduction to:

Syntax:
Expand All @@ -280,12 +272,6 @@ Syntax:
> [!WARNING]
```

or

```html
`<Tip warning={true}>`
```

Example: [here](https://github.com/huggingface/transformers/blob/eb849f6604c7dcc0e96d68f4851e52e253b9f0e5/docs/source/de/autoclass_tutorial.md#L102-L108)

### Framework Content
Expand Down