diff --git a/README.md b/README.md index 6dd7a585d..67e2dfbb3 100644 --- a/README.md +++ b/README.md @@ -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: @@ -260,18 +260,10 @@ Syntax: > Second line ``` -or - -```html - - -Write your note here - - -``` - Example: [here](https://github.com/huggingface/transformers/blob/0f0e1a2c2bff68541a5b9770d78e0fb6feb7de72/docs/source/en/create_a_model.md#L282-L286) +Legacy docs may still use the `` component, but we recommend migrating to blockquotes when updating files. + For warnings, change the introduction to: Syntax: @@ -280,12 +272,6 @@ Syntax: > [!WARNING] ``` -or - -```html -`` -``` - Example: [here](https://github.com/huggingface/transformers/blob/eb849f6604c7dcc0e96d68f4851e52e253b9f0e5/docs/source/de/autoclass_tutorial.md#L102-L108) ### Framework Content